summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2012-10-20 13:53:12 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2012-10-24 15:10:52 +0200
commite080b17a8cec92ef42343989ae65c73c25529346 (patch)
tree3b6e9c08d6f8315476dcbfba9b571e2c33913e13 /crypto/testmgr.c
parentcrypto: testmgr - add new larger DES testvectors (diff)
downloadlinux-e080b17a8cec92ef42343989ae65c73c25529346.tar.xz
linux-e080b17a8cec92ef42343989ae65c73c25529346.zip
crypto: testmgr - add new larger DES3_EDE testvectors
Most DES3_EDE testvectors are short and do not test parallelised codepaths well. Add larger testvectors to test large crypto operations and to test multi-page crypto with DES3_EDE. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Acked-by: David S. Miller <davem@davemloft.net> 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 8655309fe713..879b61d436e9 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -2351,6 +2351,21 @@ static const struct alg_test_desc alg_test_descs[] = {
}
}
}, {
+ .alg = "ctr(des3_ede)",
+ .test = alg_test_skcipher,
+ .suite = {
+ .cipher = {
+ .enc = {
+ .vecs = des3_ede_ctr_enc_tv_template,
+ .count = DES3_EDE_CTR_ENC_TEST_VECTORS
+ },
+ .dec = {
+ .vecs = des3_ede_ctr_dec_tv_template,
+ .count = DES3_EDE_CTR_DEC_TEST_VECTORS
+ }
+ }
+ }
+ }, {
.alg = "ctr(serpent)",
.test = alg_test_skcipher,
.suite = {