summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2011-10-18 13:32:50 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2011-11-09 11:53:31 +0800
commit0b2a15510699754b7c777a0f17520f1960c0d13a (patch)
tree0ea4bc3c073941d49f749833594c2394f3b2d8d7 /crypto/testmgr.c
parent87aae4bfb2912d18f2c92a4484b9edcc8c7b3f21 (diff)
downloadtalos-obmc-linux-0b2a15510699754b7c777a0f17520f1960c0d13a.tar.gz
talos-obmc-linux-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.c15
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 = {
OpenPOWER on IntegriCloud