summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2012-09-19 08:42:49 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2012-09-27 07:32:16 +0200
commitf44d83d19d8fde77bc499131bc9c0bc8583785c8 (patch)
tree690b40a72aac42019e5f302abce46c0c54e35af8 /crypto/testmgr.c
parentcrypto: caam - increase TRNG clocks per sample (diff)
downloadlinux-f44d83d19d8fde77bc499131bc9c0bc8583785c8.tar.xz
linux-f44d83d19d8fde77bc499131bc9c0bc8583785c8.zip
crypto: testmgr - allow non-multi page and multi page skcipher tests from same test template
Allow non-multi page and multi page skcipher tests to be run on same test template, to avoid duplicating data. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r--crypto/testmgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 575b57c3244b..8183777a49b6 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -804,7 +804,7 @@ static int test_skcipher(struct crypto_ablkcipher *tfm, int enc,
else
memset(iv, 0, MAX_IVLEN);
- if (!(template[i].np)) {
+ if (!(template[i].np) || (template[i].also_non_np)) {
j++;
ret = -EINVAL;