diff options
author | daMaex <damaex@live.de> | 2022-06-14 21:38:42 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-06-16 13:53:26 +0200 |
commit | 71efb44dbdae2ad3da2542fc10d8b87fc9a2f902 (patch) | |
tree | 2e086124244da4c0dca9b5e996a4638ccddff43f /src | |
parent | 16c70f2dd50e19719165dcd1eabbf9128f85a113 (diff) |
Core/Crypto: Fixed GenericHMAC::Finalize wth openssl 3.0
(cherry picked from commit 0b6f77a0062389ea0bc90427a56d2cc90eda6768)
Diffstat (limited to 'src')
-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 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); |