diff options
author | Martin Willi <martin@strongswan.org> | 2015-06-01 07:44:01 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-04 03:04:53 -0400 |
commit | af2b76b53a0668ff85b34cb108fefa85d72bb9c6 (patch) | |
tree | fb895224c120b10034023c9fe72f636d7080b5ca /crypto/testmgr.c | |
parent | 71ebc4d1b27d345342bdcb32a29c8cc3da8c6654 (diff) |
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[] = { | |||
3387 | } | 3387 | } |
3388 | } | 3388 | } |
3389 | }, { | 3389 | }, { |
3390 | .alg = "rfc7539(chacha20,poly1305)", | ||
3391 | .test = alg_test_aead, | ||
3392 | .suite = { | ||
3393 | .aead = { | ||
3394 | .enc = { | ||
3395 | .vecs = rfc7539_enc_tv_template, | ||
3396 | .count = RFC7539_ENC_TEST_VECTORS | ||
3397 | }, | ||
3398 | .dec = { | ||
3399 | .vecs = rfc7539_dec_tv_template, | ||
3400 | .count = RFC7539_DEC_TEST_VECTORS | ||
3401 | }, | ||
3402 | } | ||
3403 | } | ||
3404 | }, { | ||
3390 | .alg = "rmd128", | 3405 | .alg = "rmd128", |
3391 | .test = alg_test_hash, | 3406 | .test = alg_test_hash, |
3392 | .suite = { | 3407 | .suite = { |