summaryrefslogtreecommitdiff
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorOndrej Mosnacek <omosnacek@gmail.com>2018-05-11 14:19:10 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2018-05-19 00:15:01 +0800
commit4feb4c597a989fad2896a69d31b56cb46a448acf (patch)
tree7710e91bae440610ee3cfb4d17c51eecf6072228 /crypto/testmgr.c
parent396be41f16fd05af6c914eeb2c96e0cc2dadf28c (diff)
downloadlwn-4feb4c597a989fad2896a69d31b56cb46a448acf.tar.gz
lwn-4feb4c597a989fad2896a69d31b56cb46a448acf.zip
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[] = {
.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,