Skip to content

Commit 8163fc3

Browse files
jkivilinherbertx
authored andcommitted
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>
1 parent c3b9e8f commit 8163fc3

3 files changed

Lines changed: 596 additions & 4 deletions

File tree

‎crypto/tcrypt.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,7 @@ static int do_test(int m)
971971
case 3:
972972
ret += tcrypt_test("ecb(des)");
973973
ret += tcrypt_test("cbc(des)");
974+
ret += tcrypt_test("ctr(des)");
974975
break;
975976

976977
case 4:

‎crypto/testmgr.c‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2335,6 +2335,21 @@ static const struct alg_test_desc alg_test_descs[] = {
23352335
}
23362336
}
23372337
}
2338+
}, {
2339+
.alg = "ctr(des)",
2340+
.test = alg_test_skcipher,
2341+
.suite = {
2342+
.cipher = {
2343+
.enc = {
2344+
.vecs = des_ctr_enc_tv_template,
2345+
.count = DES_CTR_ENC_TEST_VECTORS
2346+
},
2347+
.dec = {
2348+
.vecs = des_ctr_dec_tv_template,
2349+
.count = DES_CTR_DEC_TEST_VECTORS
2350+
}
2351+
}
2352+
}
23382353
}, {
23392354
.alg = "ctr(serpent)",
23402355
.test = alg_test_skcipher,

0 commit comments

Comments
 (0)