Skip to content

Commit e080b17

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

3 files changed

Lines changed: 1118 additions & 4 deletions

File tree

‎crypto/tcrypt.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,7 @@ static int do_test(int m)
977977
case 4:
978978
ret += tcrypt_test("ecb(des3_ede)");
979979
ret += tcrypt_test("cbc(des3_ede)");
980+
ret += tcrypt_test("ctr(des3_ede)");
980981
break;
981982

982983
case 5:

‎crypto/testmgr.c‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2350,6 +2350,21 @@ static const struct alg_test_desc alg_test_descs[] = {
23502350
}
23512351
}
23522352
}
2353+
}, {
2354+
.alg = "ctr(des3_ede)",
2355+
.test = alg_test_skcipher,
2356+
.suite = {
2357+
.cipher = {
2358+
.enc = {
2359+
.vecs = des3_ede_ctr_enc_tv_template,
2360+
.count = DES3_EDE_CTR_ENC_TEST_VECTORS
2361+
},
2362+
.dec = {
2363+
.vecs = des3_ede_ctr_dec_tv_template,
2364+
.count = DES3_EDE_CTR_DEC_TEST_VECTORS
2365+
}
2366+
}
2367+
}
23532368
}, {
23542369
.alg = "ctr(serpent)",
23552370
.test = alg_test_skcipher,

0 commit comments

Comments
 (0)