From: Eric Biggers <ebiggers@kernel.org>
To: linux-crypto@vger.kernel.org, Herbert Xu <herbert@gondor.apana.org.au>
Subject: [PATCH 1/5] crypto: testmgr - skip AEAD encryption test vectors with novrfy set
Date: Sun, 13 Jan 2019 15:32:24 -0800 [thread overview]
Message-ID: <20190113233228.5851-2-ebiggers@kernel.org> (raw)
In-Reply-To: <20190113233228.5851-1-ebiggers@kernel.org>
From: Eric Biggers <ebiggers@google.com>
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 <ebiggers@google.com>
---
crypto/testmgr.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 0f684a414acbe..e075b896c0290 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)
--
2.20.1
next prev parent reply other threads:[~2019-01-13 23:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-13 23:32 [PATCH 0/5] crypto: unify the AEAD encryption and decryption test vectors Eric Biggers
2019-01-13 23:32 ` Eric Biggers [this message]
2019-01-13 23:32 ` [PATCH 2/5] crypto: testmgr - add ccm(aes) decryption tests to encryption tests Eric Biggers
2019-01-13 23:32 ` [PATCH 3/5] crypto: testmgr - add gcm(aes) " Eric Biggers
2019-01-13 23:32 ` [PATCH 4/5] crypto: testmgr - add rfc4543(gcm(aes)) decryption test " Eric Biggers
2019-01-15 17:45 ` Eric Biggers
2019-01-18 10:57 ` Herbert Xu
2019-01-13 23:32 ` [PATCH 5/5] crypto: testmgr - unify the AEAD encryption and decryption test vectors Eric Biggers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190113233228.5851-2-ebiggers@kernel.org \
--to=ebiggers@kernel.org \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).