OSDN Git Service

crypto: testmgr - add gcm(aes) decryption tests to encryption tests
authorEric Biggers <ebiggers@google.com>
Sun, 13 Jan 2019 23:32:26 +0000 (15:32 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Jan 2019 10:43:44 +0000 (18:43 +0800)
commitf38e88854269a5b2c2c837e1e641b842de819363
tree180a11d006e442c62c1767225361dd770279428c
parentde845da90350ba5ed404f328aa03d36fbf81f371
crypto: testmgr - add gcm(aes) decryption tests to encryption tests

Some "gcm(aes)" decryption test vectors don't exactly match any of the
encryption test vectors with input and result swapped.  In preparation
for removing the AEAD decryption test vectors and testing AEAD
decryption using the encryption test vectors, add these to the
encryption test vectors, so we don't lose any test coverage.

In the case of the chunked test vector, I truncated the last scatterlist
element to the end of the plaintext.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.h