summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2021-10-11 13:12:49 +0100
committerMatt Caswell <matt@openssl.org>2021-10-22 08:44:59 +0100
commite3c654c813ebd4e456060f594964107f03ca3e12 (patch)
treee13a88307e4e32f95c649450f4b272f336e70ea9 /test
parent60722c167cd3f26f1670d50a8638ee21979bea36 (diff)
Fix test_CMAC_keygen
Make sure we correctly pass through the size of the buffer to EVP_DigestSignFinal Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16789) (cherry picked from commit cff7d58eb4c8e0ef43e2fd0b12bc067bd3540e2c)
Diffstat (limited to 'test')
-rw-r--r--test/evp_extra_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/evp_extra_test.c b/test/evp_extra_test.c
index 33c5a5b7e6..b241387b5e 100644
--- a/test/evp_extra_test.c
+++ b/test/evp_extra_test.c
@@ -2070,7 +2070,7 @@ static int get_cmac_val(EVP_PKEY *pkey, unsigned char *mac)
{
EVP_MD_CTX *mdctx = EVP_MD_CTX_new();
const char msg[] = "Hello World";
- size_t maclen;
+ size_t maclen = AES_BLOCK_SIZE;
int ret = 1;
if (!TEST_ptr(mdctx)