diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2012-10-20 13:53:07 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2012-10-24 15:10:52 +0200 |
commit | 8163fc30d1316c3ecf6f88bc49b44af4aeb2dbf2 (patch) | |
tree | a9ce23ea674015892def027cbf2d0277e4889dbb /crypto/testmgr.c | |
parent | crypto: testmgr - add new larger AES testvectors (diff) | |
download | linux-8163fc30d1316c3ecf6f88bc49b44af4aeb2dbf2.tar.xz linux-8163fc30d1316c3ecf6f88bc49b44af4aeb2dbf2.zip |
crypto: testmgr - add new larger DES testvectors
Most DES 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 DES.
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.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 941d75cd1f7c..8655309fe713 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -2336,6 +2336,21 @@ static const struct alg_test_desc alg_test_descs[] = { } } }, { + .alg = "ctr(des)", + .test = alg_test_skcipher, + .suite = { + .cipher = { + .enc = { + .vecs = des_ctr_enc_tv_template, + .count = DES_CTR_ENC_TEST_VECTORS + }, + .dec = { + .vecs = des_ctr_dec_tv_template, + .count = DES_CTR_DEC_TEST_VECTORS + } + } + } + }, { .alg = "ctr(serpent)", .test = alg_test_skcipher, .suite = { |