Skip to content

Commit 5f44e5a

Browse files
committed
Memset aes struct
1 parent 26c87eb commit 5f44e5a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/api/test_aes.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8024,6 +8024,8 @@ int test_wc_AesKeyWrap_Pad(void)
80248024
byte forgeBlk[WC_AES_BLOCK_SIZE];
80258025
byte forged[WC_AES_BLOCK_SIZE];
80268026

8027+
XMEMSET(&faes, 0, sizeof(faes));
8028+
80278029
/* check 2: correct AIV constant but MLI = 0 (fails 8*(n-1) < MLI) */
80288030
XMEMSET(forgeBlk, 0, sizeof(forgeBlk));
80298031
forgeBlk[0] = 0xa6; forgeBlk[1] = 0x59; forgeBlk[2] = 0x59;

0 commit comments

Comments
 (0)