summaryrefslogtreecommitdiff
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2011-10-18 13:32:34 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2011-11-09 11:52:19 +0800
commit7602fe866c42c57b5fa87275a5bb594ada77ee54 (patch)
treee139cfcbacc4ca2ae8bf9860a04dd9b5d5757081 /crypto/testmgr.c
parentdebc7185410e3de8ce574703f2321514f0bc4b8a (diff)
downloadlinux-crypto-7602fe866c42c57b5fa87275a5bb594ada77ee54.tar.gz
linux-crypto-7602fe866c42c57b5fa87275a5bb594ada77ee54.zip
crypto: testmgr - add lrw(serpent) test vectors
Add test vectors for lrw(serpent). These are generated from lrw(aes) test vectors. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r--crypto/testmgr.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 49436b90..3cfd8b05 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -2237,6 +2237,21 @@ static const struct alg_test_desc alg_test_descs[] = {
}
}
}, {
+ .alg = "lrw(serpent)",
+ .test = alg_test_skcipher,
+ .suite = {
+ .cipher = {
+ .enc = {
+ .vecs = serpent_lrw_enc_tv_template,
+ .count = SERPENT_LRW_ENC_TEST_VECTORS
+ },
+ .dec = {
+ .vecs = serpent_lrw_dec_tv_template,
+ .count = SERPENT_LRW_DEC_TEST_VECTORS
+ }
+ }
+ }
+ }, {
.alg = "lzo",
.test = alg_test_comp,
.suite = {