diff options
author | Ondrej Mosnacek <omosnacek@gmail.com> | 2018-05-11 15:19:10 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-05-18 19:15:01 +0300 |
commit | 4feb4c597a989fad2896a69d31b56cb46a448acf (patch) | |
tree | 7710e91bae440610ee3cfb4d17c51eecf6072228 /crypto/testmgr.c | |
parent | 396be41f16fd05af6c914eeb2c96e0cc2dadf28c (diff) | |
download | linux-4feb4c597a989fad2896a69d31b56cb46a448acf.tar.xz |
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.c | 18 |
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[] = { .hash = __VECS(michael_mic_tv_template) } }, { + .alg = "morus1280", + .test = alg_test_aead, + .suite = { + .aead = { + .enc = __VECS(morus1280_enc_tv_template), + .dec = __VECS(morus1280_dec_tv_template), + } + } + }, { + .alg = "morus640", + .test = alg_test_aead, + .suite = { + .aead = { + .enc = __VECS(morus640_enc_tv_template), + .dec = __VECS(morus640_dec_tv_template), + } + } + }, { .alg = "ofb(aes)", .test = alg_test_skcipher, .fips_allowed = 1, |