Skip to content

Commit

Permalink
test: Initialize local buffers in Kasumi F8 bitblock test
Browse files Browse the repository at this point in the history
  • Loading branch information
mdcornu committed Apr 26, 2021
1 parent 4516d6a commit a1a289d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/kasumi_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,10 @@ static int validate_kasumi_f8_1_bitblock_offset(IMB_MGR *mgr,
uint8_t *pWrkBuff = wrkbuf;
uint64_t *pIV = &IV;

memset(srcBuff, 0, sizeof(srcBuff));
memset(dstBuff, 0, sizeof(dstBuff));
memset(wrkbuf, 0, sizeof(wrkbuf));

if (!numKasumiTestVectors) {
printf("No Kasumi vectors found !\n");
return 1;
Expand Down

0 comments on commit a1a289d

Please sign in to comment.