From 0b6f77a0062389ea0bc90427a56d2cc90eda6768 Mon Sep 17 00:00:00 2001 From: daMaex Date: Tue, 14 Jun 2022 21:38:42 +0200 Subject: Core/Crypto: Fixed GenericHMAC::Finalize wth openssl 3.0 --- src/common/Cryptography/HMAC.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/common/Cryptography/HMAC.h b/src/common/Cryptography/HMAC.h index 1c3e3c2a3a6..4f58f57c94c 100644 --- a/src/common/Cryptography/HMAC.h +++ b/src/common/Cryptography/HMAC.h @@ -118,7 +118,7 @@ namespace Trinity::Impl void Finalize() { - size_t length = 0; + size_t length = DIGEST_LENGTH; int result = EVP_DigestSignFinal(_ctx, _digest.data(), &length); ASSERT(result == 1); ASSERT(length == DIGEST_LENGTH); -- cgit v1.2.3