diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-05-04 13:11:30 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-05-04 13:20:49 +0100 |
commit | 6dccec2b5990cd282725393c21b5524f4f774615 (patch) | |
tree | ee3c5b2ff7945b9f2c8496fa0419c4a9926b18f3 | |
parent | b1b3e14fbeb373a288ba20402600e071e6f402f8 (diff) |
Fix Blake block length
PR#4514
Reviewed-by: Richard Levitte <levitte@openssl.org>
-rw-r--r-- | crypto/blake2/m_blake2b.c | 2 | ||||
-rw-r--r-- | crypto/blake2/m_blake2s.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/blake2/m_blake2b.c b/crypto/blake2/m_blake2b.c index 2135c7a129..f613bfff17 100644 --- a/crypto/blake2/m_blake2b.c +++ b/crypto/blake2/m_blake2b.c @@ -49,7 +49,7 @@ static const EVP_MD blake2b_md = { final, NULL, NULL, - 0, + BLAKE2B_BLOCKBYTES, sizeof(EVP_MD *) + sizeof(BLAKE2B_CTX), }; diff --git a/crypto/blake2/m_blake2s.c b/crypto/blake2/m_blake2s.c index e699184822..3fbb232e05 100644 --- a/crypto/blake2/m_blake2s.c +++ b/crypto/blake2/m_blake2s.c @@ -49,7 +49,7 @@ static const EVP_MD blake2s_md = { final, NULL, NULL, - 0, + BLAKE2S_BLOCKBYTES, sizeof(EVP_MD *) + sizeof(BLAKE2S_CTX), }; |