projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
866cd90
)
[CRYPTO] tcrypt: Zero axbuf in the right function
author
Herbert Xu
<herbert@gondor.apana.org.au>
Sun, 30 Dec 2007 09:24:11 +0000
(20:24 +1100)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:59 +0000
(08:16 +1100)
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>
crypto/tcrypt.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/tcrypt.c
b/crypto/tcrypt.c
index 2b52df7bf8334f38a908f71319aa31b0d97004f2..72073ef4a06d74a7195c3163e7a672482de8234e 100644
(file)
--- a/
crypto/tcrypt.c
+++ b/
crypto/tcrypt.c
@@
-172,7
+172,6
@@
static void test_hash(char *algo, struct hash_testvec *template,
/* setup the dummy buffer first */
memset(xbuf, 0, XBUFSIZE);
- memset(axbuf, 0, XBUFSIZE);
j = 0;
for (i = 0; i < tcount; i++) {
@@
-350,6
+349,7
@@
static void test_aead(char *algo, int enc, struct aead_testvec *template,
printk(KERN_INFO "\ntesting %s %s across pages (chunking)\n", algo, e);
memset(xbuf, 0, XBUFSIZE);
+ memset(axbuf, 0, XBUFSIZE);
for (i = 0, j = 0; i < tcount; i++) {
if (aead_tv[i].np) {