summaryrefslogtreecommitdiff
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2012-09-19 09:42:49 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2012-09-27 13:32:16 +0800
commit3103b89bc50f9702c61153d0937ee4d6e41772b6 (patch)
treee789ee740da6fe20840319ad32806664dc481581 /crypto/testmgr.c
parent5e76795dc8422b447d64c2766926d1251daed0ea (diff)
downloadlinux-crypto-3103b89bc50f9702c61153d0937ee4d6e41772b6.tar.gz
linux-crypto-3103b89bc50f9702c61153d0937ee4d6e41772b6.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 575b57c3..8183777a 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;