crypto: testmgr: add twofish tests
Subsystems (2)
PATCH 1/1 crypto: testmgr: add twofish tests
Add tests for parallel twofish-x86_64-3way code paths.
Signed-off-by Jussi Kivilinna <[email protected]>
--- crypto/tcrypt.c | 1 crypto/testmgr.c | 15 ++++ crypto/testmgr.h | 226 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 238 insertions(+), 4 deletions(-)
crypto/tcrypt.c +1 -0
@@ -788,6 +788,7 @@ static int do_test(int m)case 8 : ret +=tcrypt_test ("ecb(twofish)" ); ret +=tcrypt_test ("cbc(twofish)" ); + ret +=tcrypt_test ("ctr(twofish)" );break ;case 9 :
crypto/testmgr.c +15 -0
@@ -1771,6 +1771,21 @@ static const struct alg_test_desc alg_test_descs[] = { } } }, { + .alg = "ctr(twofish)", + .test = alg_test_skcipher, + .suite = { + .cipher = { + .enc = { + .vecs = tf_ctr_enc_tv_template, + .count = TF_CTR_ENC_TEST_VECTORS + }, + .dec = { + .vecs = tf_ctr_dec_tv_template, + .count = TF_CTR_DEC_TEST_VECTORS + } + } + } + }, { .alg = "cts(cbc(aes))", .test = alg_test_skcipher, .suite = {
crypto/testmgr.h +222 -4
256 lines not on this page · raw message
Herbert Xu
maintainerQuoted 3 lines · Jussi Kivilinna
Add tests for parallel twofish-x86_64-3way code paths.
Signed-off-by Jussi Kivilinna <[email protected]>
Both patches applied. Thanks!
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt