summaryrefslogtreecommitdiff
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2011-10-10 23:03:12 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2011-10-21 14:28:58 +0200
commit573da6208a7e2b2d8666b8b02f5054d3a4e12998 (patch)
tree13d58aa01fd837e50518d6b5ee1a343bce7ccd9c /crypto/testmgr.c
parent85b63e342c7ee0b9ac5281a5dfb0f1355bf6d75d (diff)
downloadlinux-3.10-573da6208a7e2b2d8666b8b02f5054d3a4e12998.tar.gz
linux-3.10-573da6208a7e2b2d8666b8b02f5054d3a4e12998.tar.bz2
linux-3.10-573da6208a7e2b2d8666b8b02f5054d3a4e12998.zip
crypto: testmgr - add twofish tests
Add tests for parallel twofish-x86_64-3way code paths. 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 466f9c01e48..e91c1eb1722 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -1771,6 +1771,21 @@ static const struct alg_test_desc alg_test_descs[] = {
}
}
}, {
+ .alg = "ctr(twofish)",
+ .test = alg_test_skcipher,
+ .suite = {
+ .cipher = {
+ .enc = {
+ .vecs = tf_ctr_enc_tv_template,
+ .count = TF_CTR_ENC_TEST_VECTORS
+ },
+ .dec = {
+ .vecs = tf_ctr_dec_tv_template,
+ .count = TF_CTR_DEC_TEST_VECTORS
+ }
+ }
+ }
+ }, {
.alg = "cts(cbc(aes))",
.test = alg_test_skcipher,
.suite = {