summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorOndrej Mosnacek <omosnacek@gmail.com>2018-05-11 08:19:10 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2018-05-18 12:15:01 -0400
commit4feb4c597a989fad2896a69d31b56cb46a448acf (patch)
tree7710e91bae440610ee3cfb4d17c51eecf6072228 /crypto/testmgr.c
parent396be41f16fd05af6c914eeb2c96e0cc2dadf28c (diff)
crypto: testmgr - Add test vectors for MORUS
This patch adds test vectors for MORUS-640 and MORUS-1280. 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>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r--crypto/testmgr.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 0c9844a16246..41a5f42d4104 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -3363,6 +3363,24 @@ static const struct alg_test_desc alg_test_descs[] = {
3363 .hash = __VECS(michael_mic_tv_template) 3363 .hash = __VECS(michael_mic_tv_template)
3364 } 3364 }
3365 }, { 3365 }, {
3366 .alg = "morus1280",
3367 .test = alg_test_aead,
3368 .suite = {
3369 .aead = {
3370 .enc = __VECS(morus1280_enc_tv_template),
3371 .dec = __VECS(morus1280_dec_tv_template),
3372 }
3373 }
3374 }, {
3375 .alg = "morus640",
3376 .test = alg_test_aead,
3377 .suite = {
3378 .aead = {
3379 .enc = __VECS(morus640_enc_tv_template),
3380 .dec = __VECS(morus640_dec_tv_template),
3381 }
3382 }
3383 }, {
3366 .alg = "ofb(aes)", 3384 .alg = "ofb(aes)",
3367 .test = alg_test_skcipher, 3385 .test = alg_test_skcipher,
3368 .fips_allowed = 1, 3386 .fips_allowed = 1,