From ba48221c41d16544bcd50e47c7710f19c1f04a9a Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Thu, 13 Jul 2017 13:21:09 -0600 Subject: [PATCH] adjust size of test buffer --- tests/api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/api.c b/tests/api.c index baa3648cb..aa2448bc5 100644 --- a/tests/api.c +++ b/tests/api.c @@ -5739,7 +5739,7 @@ static int test_wc_AesCbcEncryptDecrypt (void) 0x66,0x6f,0x72,0x20,0x61,0x6c,0x6c,0x20 }; byte iv[] = "1234567890abcdef"; - byte enc[AES_BLOCK_SIZE]; + byte enc[sizeof(vector)]; byte dec[sizeof(vector)]; int cbcE = SSL_FATAL_ERROR; int cbcD = SSL_FATAL_ERROR; @@ -5748,7 +5748,7 @@ static int test_wc_AesCbcEncryptDecrypt (void) int ret; /* Init stack variables. */ - XMEMSET(enc, 0, AES_BLOCK_SIZE); + XMEMSET(enc, 0, sizeof(enc)); XMEMSET(dec, 0, sizeof(vector)); XMEMSET(dec2, 0, sizeof(vector));