From 546442c1301caf94454a8799e8818ae8fd285755 Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 12 Nov 2019 09:43:09 -0800 Subject: [PATCH] Fix for CAVP test issue trying to use `AES_128_KEY_SIZE` and `AES_IV_SIZE`. --- tests/api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/api.c b/tests/api.c index 73ff88953..b26a7437b 100644 --- a/tests/api.c +++ b/tests/api.c @@ -1944,8 +1944,8 @@ static void test_wolfSSL_EVP_CIPHER_CTX() EVP_CIPHER_CTX *ctx = EVP_CIPHER_CTX_new(); const EVP_CIPHER *init = EVP_aes_128_cbc(); const EVP_CIPHER *test = NULL; - byte key[AES_128_KEY_SIZE] = {0}; - byte iv[AES_IV_SIZE] = {0}; + byte key[AES_BLOCK_SIZE] = {0}; + byte iv[AES_BLOCK_SIZE] = {0}; AssertNotNull(ctx); wolfSSL_EVP_CIPHER_CTX_init(ctx);