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 | 0b2a15510699754b7c777a0f17520f1960c0d13a (patch) | |
tree | 0ea4bc3c073941d49f749833594c2394f3b2d8d7 /crypto/testmgr.c | |
parent | 87aae4bfb2912d18f2c92a4484b9edcc8c7b3f21 (diff) | |
download | kernel-common-0b2a15510699754b7c777a0f17520f1960c0d13a.tar.gz kernel-common-0b2a15510699754b7c777a0f17520f1960c0d13a.tar.bz2 kernel-common-0b2a15510699754b7c777a0f17520f1960c0d13a.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 '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 3cfd8b05554c..ae33d3075ce7 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 = { |