From 5bc3de58c102cae2f3c76f2df222d975fd388d0b Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 13 Jan 2019 15:32:24 -0800 Subject: crypto: testmgr - skip AEAD encryption test vectors with novrfy set In preparation for unifying the AEAD encryption and decryption test vectors, skip AEAD test vectors with the 'novrfy' (verification failure expected) flag set when testing encryption rather than decryption. These test vectors only make sense for decryption. Signed-off-by: Eric Biggers Signed-off-by: Herbert Xu --- crypto/testmgr.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crypto/testmgr.c') diff --git a/crypto/testmgr.c b/crypto/testmgr.c index fd31cfa872fb..09f2f0f582bf 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -671,6 +671,8 @@ static int __test_aead(struct crypto_aead *tfm, int enc, for (i = 0, j = 0; i < tcount; i++) { if (template[i].np) continue; + if (enc && template[i].novrfy) + continue; j++; @@ -787,6 +789,9 @@ static int __test_aead(struct crypto_aead *tfm, int enc, if (!template[i].np) continue; + if (enc && template[i].novrfy) + continue; + j++; if (template[i].iv) -- cgit v1.2.3-58-ga151