Skip to content

Commit 82d9a7b

Browse files
committed
Initialize scratch buffer
1 parent 673c599 commit 82d9a7b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

wolfcrypt/src/aes.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6056,6 +6056,8 @@ int wc_AesCbcEncrypt(Aes* aes, byte* out, const byte* in, word32 sz)
60566056
int ret = 0;
60576057
word32 processed;
60586058

6059+
XMEMSET(scratch, 0, sizeof(scratch));
6060+
60596061
if (aes == NULL || out == NULL || in == NULL) {
60606062
return BAD_FUNC_ARG;
60616063
}

0 commit comments

Comments
 (0)