diff options
-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); |