From 71efb44dbdae2ad3da2542fc10d8b87fc9a2f902 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 (cherry picked from commit 0b6f77a0062389ea0bc90427a56d2cc90eda6768) --- 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 d07ba19216d..df33c18c883 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