From 4feb4c597a989fad2896a69d31b56cb46a448acf Mon Sep 17 00:00:00 2001 From: Ondrej Mosnacek Date: Fri, 11 May 2018 14:19:10 +0200 Subject: 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 Signed-off-by: Herbert Xu --- crypto/testmgr.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'crypto/testmgr.c') diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 0c9844a16246..41a5f42d4104 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -3362,6 +3362,24 @@ static const struct alg_test_desc alg_test_descs[] = { .suite = { .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, -- cgit v1.2.3