projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c994488
)
crypto: testmgr - Remove hash size check
author
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 24 Jun 2009 05:48:13 +0000
(13:48 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 24 Jun 2009 05:48:13 +0000
(13:48 +0800)
Until hash test vectors grow longer than 256 bytes, the only
purpose of the check is to generate a gcc warning.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/testmgr.c
b/crypto/testmgr.c
index e9e9d84293b9f953e6c41835778d2bb7a878c694..f9bea9d989fa8e4894d8cdb1e0a7b0315d742e14 100644
(file)
--- a/
crypto/testmgr.c
+++ b/
crypto/testmgr.c
@@
-190,10
+190,6
@@
static int test_hash(struct crypto_ahash *tfm, struct hash_testvec *template,
hash_buff = xbuf[0];
- ret = -EINVAL;
- if (WARN_ON(template[i].psize > PAGE_SIZE))
- goto out;
-
memcpy(hash_buff, template[i].plaintext, template[i].psize);
sg_init_one(&sg[0], hash_buff, template[i].psize);