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>
This commit is contained in:
Martin Willi
2015-06-01 13:43:59 +02:00
committed by Herbert Xu
parent f979e014c5
commit eee9dc6162
2 changed files with 268 additions and 0 deletions

View File

@@ -3314,6 +3314,15 @@ static const struct alg_test_desc alg_test_descs[] = {
}
}
}
}, {
.alg = "poly1305",
.test = alg_test_hash,
.suite = {
.hash = {
.vecs = poly1305_tv_template,
.count = POLY1305_TEST_VECTORS
}
}
}, {
.alg = "rfc3686(ctr(aes))",
.test = alg_test_skcipher,