From: Matt Caswell Date: Mon, 11 Oct 2021 12:12:49 +0000 (+0100) Subject: Fix test_CMAC_keygen X-Git-Tag: openssl-3.2.0-alpha1~3448 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cff7d58eb4c8e0ef43e2fd0b12bc067bd3540e2c;p=thirdparty%2Fopenssl.git Fix test_CMAC_keygen Make sure we correctly pass through the size of the buffer to EVP_DigestSignFinal Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/16789) --- diff --git a/test/evp_extra_test.c b/test/evp_extra_test.c index 33c5a5b7e60..b241387b5ea 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)