diff options
author | Daniel Wyatt <[email protected]> | 2017-04-03 17:54:08 -0400 |
---|---|---|
committer | Daniel Wyatt <[email protected]> | 2017-04-03 17:54:08 -0400 |
commit | 05c6178a434c4e62e87470dda945be8dbf6b103c (patch) | |
tree | 49f6e2acd47d87c6b4f116b26058a8f99791532c /src/lib/hash/sm3/sm3.h | |
parent | 7fcd74ea901948418febdf7f3d8254f1eae17c24 (diff) |
Unroll loops in SM3 hash compress_n.
Diffstat (limited to 'src/lib/hash/sm3/sm3.h')
-rw-r--r-- | src/lib/hash/sm3/sm3.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/hash/sm3/sm3.h b/src/lib/hash/sm3/sm3.h index 896482332..c5dacdf3a 100644 --- a/src/lib/hash/sm3/sm3.h +++ b/src/lib/hash/sm3/sm3.h @@ -29,7 +29,7 @@ class BOTAN_DLL SM3 final : public MDx_HashFunction void clear() override; - SM3() : MDx_HashFunction(SM3_BLOCK_BYTES, true, true), m_M(16), m_digest(SM3_DIGEST_BYTES) + SM3() : MDx_HashFunction(SM3_BLOCK_BYTES, true, true), m_digest(SM3_DIGEST_BYTES) { clear(); } protected: void compress_n(const uint8_t[], size_t blocks) override; @@ -37,11 +37,6 @@ class BOTAN_DLL SM3 final : public MDx_HashFunction private: /** - * The message buffer - */ - secure_vector<uint32_t> m_M; - - /** * The digest value */ secure_vector<uint32_t> m_digest; |