From 2a0b726c15483b6d71b4fb5e818ddc87216e2f6b Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Wed, 6 Apr 2022 09:42:38 -0700 Subject: [PATCH] add AES init functions to ECB test case --- wolfcrypt/test/test.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index c50d96433..52ea50c69 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -8503,6 +8503,13 @@ static int aesecb_test(void) 0x2d,0x98,0x10,0xa3,0x09,0x14,0xdf,0xf4 }; + if (wc_AesInit(enc, HEAP_HINT, devId) != 0) + ERROR_OUT(-5900, out); + #if defined(HAVE_AES_DECRYPT) + if (wc_AesInit(dec, HEAP_HINT, devId) != 0) + ERROR_OUT(-5901, out); + #endif + XMEMSET(cipher, 0, AES_BLOCK_SIZE); ret = wc_AesSetKey(enc, niKey, sizeof(niKey), cipher, AES_ENCRYPTION); if (ret != 0)