Skip to content

Commit

Permalink
crypto: testmgr - allow non-multi page and multi page skcipher tests …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
jkivilin authored and herbertx committed Sep 27, 2012
1 parent a5bbf6f commit f44d83d
Show file tree
Hide file tree
Showing 2 changed files with 170 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crypto/testmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading

0 comments on commit f44d83d

Please sign in to comment.