diff options
author | daMaex <damaex@live.de> | 2022-06-14 21:38:42 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-06-16 12:37:00 +0200 |
commit | 0b6f77a0062389ea0bc90427a56d2cc90eda6768 (patch) | |
tree | 0757f91acad1f077810015968c145e4f1ae2b5b3 | |
parent | b23d16a87031c08c58b9d53a3c5864bd4b9277fd (diff) |
Core/Crypto: Fixed GenericHMAC::Finalize wth openssl 3.0
-rw-r--r-- | src/common/Cryptography/HMAC.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |