diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2011-10-18 13:32:34 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-11-09 11:52:19 +0800 |
commit | d7bfc0fa31bc237a5d49e9c5638676a5dedff6fc (patch) | |
tree | 114034ebf848699484be1c1d8e50a5b0ab92901a /crypto/testmgr.c | |
parent | 6c2205b8ffec035f4925b8ee84b7758afeee58b5 (diff) | |
download | kernel-common-d7bfc0fa31bc237a5d49e9c5638676a5dedff6fc.tar.gz kernel-common-d7bfc0fa31bc237a5d49e9c5638676a5dedff6fc.tar.bz2 kernel-common-d7bfc0fa31bc237a5d49e9c5638676a5dedff6fc.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.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 49436b900081..3cfd8b05554c 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 = { |