diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2011-10-18 06:33:33 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-11-08 22:57:56 -0500 |
commit | aed265b9fef4a6389e81b98b5c5eb5cd80ef5ead (patch) | |
tree | afdfa814c981e20cfb6da75f04943e2b7cf94f43 /crypto/testmgr.c | |
parent | 5209c07ac3601cfdbe2edff016e80ad93cee8dbc (diff) |
crypto: testmgr - add xts(twofish) test vectors
Add test vectors for xts(twofish). These are generated from xts(twofish) test vectors.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
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 5e349a6bc98a..01553a6754b7 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c | |||
@@ -2589,6 +2589,21 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
2589 | } | 2589 | } |
2590 | } | 2590 | } |
2591 | }, { | 2591 | }, { |
2592 | .alg = "xts(twofish)", | ||
2593 | .test = alg_test_skcipher, | ||
2594 | .suite = { | ||
2595 | .cipher = { | ||
2596 | .enc = { | ||
2597 | .vecs = tf_xts_enc_tv_template, | ||
2598 | .count = TF_XTS_ENC_TEST_VECTORS | ||
2599 | }, | ||
2600 | .dec = { | ||
2601 | .vecs = tf_xts_dec_tv_template, | ||
2602 | .count = TF_XTS_DEC_TEST_VECTORS | ||
2603 | } | ||
2604 | } | ||
2605 | } | ||
2606 | }, { | ||
2592 | .alg = "zlib", | 2607 | .alg = "zlib", |
2593 | .test = alg_test_pcomp, | 2608 | .test = alg_test_pcomp, |
2594 | .suite = { | 2609 | .suite = { |