diff options
author | Martin Willi <martin@strongswan.org> | 2015-06-01 13:44:01 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-04 09:04:53 +0200 |
commit | af2b76b53a0668ff85b34cb108fefa85d72bb9c6 (patch) | |
tree | fb895224c120b10034023c9fe72f636d7080b5ca /crypto/testmgr.c | |
parent | crypto: chacha20poly1305 - Add a ChaCha20-Poly1305 AEAD construction, RFC7539 (diff) | |
download | linux-af2b76b53a0668ff85b34cb108fefa85d72bb9c6.tar.xz linux-af2b76b53a0668ff85b34cb108fefa85d72bb9c6.zip |
crypto: testmgr - Add ChaCha20-Poly1305 test vectors from RFC7539
Signed-off-by: Martin Willi <martin@strongswan.org>
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r-- | crypto/testmgr.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index faf93a6696e2..915a9effd838 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -3387,6 +3387,21 @@ static const struct alg_test_desc alg_test_descs[] = { } } }, { + .alg = "rfc7539(chacha20,poly1305)", + .test = alg_test_aead, + .suite = { + .aead = { + .enc = { + .vecs = rfc7539_enc_tv_template, + .count = RFC7539_ENC_TEST_VECTORS + }, + .dec = { + .vecs = rfc7539_dec_tv_template, + .count = RFC7539_DEC_TEST_VECTORS + }, + } + } + }, { .alg = "rmd128", .test = alg_test_hash, .suite = { |