Skip to content

Commit b87dc20

Browse files
WOnder93herbertx
authored andcommitted
crypto: testmgr - Add test vectors for AEGIS
This patch adds test vectors for the AEGIS family of AEAD algorithms (AEGIS-128, AEGIS-128L, and AEGIS-256). The test vectors were generated using the reference implementation from SUPERCOP (see code comments for more details). Signed-off-by: Ondrej Mosnacek <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent f606a88 commit b87dc20

File tree

2 files changed

+2862
-0
lines changed

2 files changed

+2862
-0
lines changed

crypto/testmgr.c

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,6 +2340,33 @@ static int alg_test_null(const struct alg_test_desc *desc,
23402340
/* Please keep this list sorted by algorithm name. */
23412341
static const struct alg_test_desc alg_test_descs[] = {
23422342
{
2343+
.alg = "aegis128",
2344+
.test = alg_test_aead,
2345+
.suite = {
2346+
.aead = {
2347+
.enc = __VECS(aegis128_enc_tv_template),
2348+
.dec = __VECS(aegis128_dec_tv_template),
2349+
}
2350+
}
2351+
}, {
2352+
.alg = "aegis128l",
2353+
.test = alg_test_aead,
2354+
.suite = {
2355+
.aead = {
2356+
.enc = __VECS(aegis128l_enc_tv_template),
2357+
.dec = __VECS(aegis128l_dec_tv_template),
2358+
}
2359+
}
2360+
}, {
2361+
.alg = "aegis256",
2362+
.test = alg_test_aead,
2363+
.suite = {
2364+
.aead = {
2365+
.enc = __VECS(aegis256_enc_tv_template),
2366+
.dec = __VECS(aegis256_dec_tv_template),
2367+
}
2368+
}
2369+
}, {
23432370
.alg = "ansi_cprng",
23442371
.test = alg_test_cprng,
23452372
.suite = {

0 commit comments

Comments
 (0)