diff --git a/soup/aes.cpp b/soup/aes.cpp index 97b470b4..7d1a4de4 100644 --- a/soup/aes.cpp +++ b/soup/aes.cpp @@ -932,19 +932,6 @@ NAMESPACE_SOUP } } - void aes::ghash(uint8_t res[16], const uint8_t h[16], const uint8_t x[], size_t x_bytes) noexcept - { - memset(res, 0, 16); - const auto x_blocks = (x_bytes / 16); - uint8_t tmp[16]; - for (size_t i = 0; i != x_blocks; ++i) - { - xorBlocks(res, &x[i * 16]); - memcpy(tmp, res, 16); - mulBlocks(res, tmp, h); - } - } - void aes::calcH(uint8_t h[16], uint8_t roundKeys[240], const int Nr) noexcept { memset(h, 0, 16); diff --git a/soup/aes.hpp b/soup/aes.hpp index 4ca75a79..7f94e897 100644 --- a/soup/aes.hpp +++ b/soup/aes.hpp @@ -53,7 +53,6 @@ NAMESPACE_SOUP static SOUP_FORCEINLINE void rshiftBlock(uint8_t block[16]) noexcept; static void mulBlocks(uint8_t res[16], const uint8_t x[16], const uint8_t y[16]) noexcept; - static void ghash(uint8_t res[16], const uint8_t h[16], const uint8_t x[], size_t x_bytes) noexcept; static void calcH(uint8_t h[16], uint8_t roundKeys[240], const int Nr) noexcept; static void calcJ0(uint8_t j0[16], const uint8_t h[16], const uint8_t* iv, size_t iv_len) noexcept; static void inc32(uint8_t block[16]) noexcept;