diff options
author | Martin Willi <martin@strongswan.org> | 2015-06-01 07:43:59 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-04 03:04:51 -0400 |
commit | eee9dc6162c537641a9259ae595193fa3c68c96e (patch) | |
tree | 8eb5a24eaba51d85dcdb98c1ad5ff399d7aca895 /crypto/testmgr.c | |
parent | f979e014c50ce3f7467f133898dbea2243247a91 (diff) |
crypto: testmgr - Add 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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index abd09c2489fa..faf93a6696e2 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c | |||
@@ -3315,6 +3315,15 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
3315 | } | 3315 | } |
3316 | } | 3316 | } |
3317 | }, { | 3317 | }, { |
3318 | .alg = "poly1305", | ||
3319 | .test = alg_test_hash, | ||
3320 | .suite = { | ||
3321 | .hash = { | ||
3322 | .vecs = poly1305_tv_template, | ||
3323 | .count = POLY1305_TEST_VECTORS | ||
3324 | } | ||
3325 | } | ||
3326 | }, { | ||
3318 | .alg = "rfc3686(ctr(aes))", | 3327 | .alg = "rfc3686(ctr(aes))", |
3319 | .test = alg_test_skcipher, | 3328 | .test = alg_test_skcipher, |
3320 | .fips_allowed = 1, | 3329 | .fips_allowed = 1, |