summaryrefslogtreecommitdiffstats
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
commitf44d83d19d8fde77bc499131bc9c0bc8583785c8 (patch)
tree690b40a72aac42019e5f302abce46c0c54e35af8 /crypto/testmgr.c
parenta5bbf6fa79abe0cb64aaebc3455f9ba779d6a36f (diff)
downloadop-kernel-dev-f44d83d19d8fde77bc499131bc9c0bc8583785c8.zip
op-kernel-dev-f44d83d19d8fde77bc499131bc9c0bc8583785c8.tar.gz
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 575b57c..8183777 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;
OpenPOWER on IntegriCloud