Core/Crypto: Fixed GenericHMAC::Finalize wth openssl 3.0

(cherry picked from commit 0b6f77a006)
This commit is contained in:
daMaex
2022-06-14 21:38:42 +02:00
committed by Shauren
parent 16c70f2dd5
commit 71efb44dbd

View File

@@ -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);