Commit 2a999a3abb2d3885741b09b9d05280db7e757544
1 parent
866cd902e8
[CRYPTO] tcrypt: Zero axbuf in the right function
The axbuf buffer is used by test_aead and therefore should be zeroed there instead of in test_hash. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
crypto/tcrypt.c
... | ... | @@ -172,7 +172,6 @@ |
172 | 172 | |
173 | 173 | /* setup the dummy buffer first */ |
174 | 174 | memset(xbuf, 0, XBUFSIZE); |
175 | - memset(axbuf, 0, XBUFSIZE); | |
176 | 175 | |
177 | 176 | j = 0; |
178 | 177 | for (i = 0; i < tcount; i++) { |
... | ... | @@ -350,6 +349,7 @@ |
350 | 349 | |
351 | 350 | printk(KERN_INFO "\ntesting %s %s across pages (chunking)\n", algo, e); |
352 | 351 | memset(xbuf, 0, XBUFSIZE); |
352 | + memset(axbuf, 0, XBUFSIZE); | |
353 | 353 | |
354 | 354 | for (i = 0, j = 0; i < tcount; i++) { |
355 | 355 | if (aead_tv[i].np) { |