diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2011-10-18 13:32:50 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-11-09 11:53:31 +0800 |
commit | fc9cb88f1b0b1f8c75f817e2e4982c6a1596c469 (patch) | |
tree | 67da622ad434fde7be7be7c72286ec36d72ccea8 /crypto/testmgr.c | |
parent | 061aa4aa7a8c5bfb76716c2ff1d3a1a440a75c6c (diff) | |
download | linux-crypto-fc9cb88f1b0b1f8c75f817e2e4982c6a1596c469.tar.gz linux-crypto-fc9cb88f1b0b1f8c75f817e2e4982c6a1596c469.zip |
crypto: testmgr - add lrw(twofish) test vectors
Add test vectors for lrw(twofish). 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 '')
-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 3cfd8b05..ae33d307 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -2252,6 +2252,21 @@ static const struct alg_test_desc alg_test_descs[] = { } } }, { + .alg = "lrw(twofish)", + .test = alg_test_skcipher, + .suite = { + .cipher = { + .enc = { + .vecs = tf_lrw_enc_tv_template, + .count = TF_LRW_ENC_TEST_VECTORS + }, + .dec = { + .vecs = tf_lrw_dec_tv_template, + .count = TF_LRW_DEC_TEST_VECTORS + } + } + } + }, { .alg = "lzo", .test = alg_test_comp, .suite = { |