提交 5bc3de58 编写于 作者: E Eric Biggers 提交者: Herbert Xu

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: NEric Biggers <ebiggers@google.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 6d0d6cfb
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册