diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2012-09-19 09:42:49 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2012-09-27 13:32:16 +0800 |
commit | 3103b89bc50f9702c61153d0937ee4d6e41772b6 (patch) | |
tree | e789ee740da6fe20840319ad32806664dc481581 /crypto/testmgr.c | |
parent | 5e76795dc8422b447d64c2766926d1251daed0ea (diff) | |
download | linux-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.c | 2 |
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; |