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 <omosnacek@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
f606a88e58
commit
b87dc20346
|
@ -2340,6 +2340,33 @@ static int alg_test_null(const struct alg_test_desc *desc,
|
|||
/* Please keep this list sorted by algorithm name. */
|
||||
static const struct alg_test_desc alg_test_descs[] = {
|
||||
{
|
||||
.alg = "aegis128",
|
||||
.test = alg_test_aead,
|
||||
.suite = {
|
||||
.aead = {
|
||||
.enc = __VECS(aegis128_enc_tv_template),
|
||||
.dec = __VECS(aegis128_dec_tv_template),
|
||||
}
|
||||
}
|
||||
}, {
|
||||
.alg = "aegis128l",
|
||||
.test = alg_test_aead,
|
||||
.suite = {
|
||||
.aead = {
|
||||
.enc = __VECS(aegis128l_enc_tv_template),
|
||||
.dec = __VECS(aegis128l_dec_tv_template),
|
||||
}
|
||||
}
|
||||
}, {
|
||||
.alg = "aegis256",
|
||||
.test = alg_test_aead,
|
||||
.suite = {
|
||||
.aead = {
|
||||
.enc = __VECS(aegis256_enc_tv_template),
|
||||
.dec = __VECS(aegis256_dec_tv_template),
|
||||
}
|
||||
}
|
||||
}, {
|
||||
.alg = "ansi_cprng",
|
||||
.test = alg_test_cprng,
|
||||
.suite = {
|
||||
|
|
2835
crypto/testmgr.h
2835
crypto/testmgr.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue