From 6dccec2b5990cd282725393c21b5524f4f774615 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 4 May 2016 13:11:30 +0100 Subject: [PATCH] Fix Blake block length PR#4514 Reviewed-by: Richard Levitte --- crypto/blake2/m_blake2b.c | 2 +- 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), }; -- 2.25.1