mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-30 19:15:14 +00:00
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>
This commit is contained in:
parent
8163fc30d1
commit
e080b17a8c
3 changed files with 1118 additions and 4 deletions
|
@ -977,6 +977,7 @@ static int do_test(int m)
|
||||||
case 4:
|
case 4:
|
||||||
ret += tcrypt_test("ecb(des3_ede)");
|
ret += tcrypt_test("ecb(des3_ede)");
|
||||||
ret += tcrypt_test("cbc(des3_ede)");
|
ret += tcrypt_test("cbc(des3_ede)");
|
||||||
|
ret += tcrypt_test("ctr(des3_ede)");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 5:
|
case 5:
|
||||||
|
|
|
@ -2350,6 +2350,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)",
|
.alg = "ctr(serpent)",
|
||||||
.test = alg_test_skcipher,
|
.test = alg_test_skcipher,
|
||||||
|
|
1106
crypto/testmgr.h
1106
crypto/testmgr.h
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue