mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
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)
This commit is contained in:
parent
61adb6cf95
commit
cff7d58eb4
@ -2070,7 +2070,7 @@ static int get_cmac_val(EVP_PKEY *pkey, unsigned char *mac)
|
|||||||
{
|
{
|
||||||
EVP_MD_CTX *mdctx = EVP_MD_CTX_new();
|
EVP_MD_CTX *mdctx = EVP_MD_CTX_new();
|
||||||
const char msg[] = "Hello World";
|
const char msg[] = "Hello World";
|
||||||
size_t maclen;
|
size_t maclen = AES_BLOCK_SIZE;
|
||||||
int ret = 1;
|
int ret = 1;
|
||||||
|
|
||||||
if (!TEST_ptr(mdctx)
|
if (!TEST_ptr(mdctx)
|
||||||
|
Loading…
Reference in New Issue
Block a user