diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2011-10-18 13:33:33 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-11-09 11:57:56 +0800 |
commit | 70421b9453da2139d4f861a148b157b81cff388d (patch) | |
tree | 7a5ef4a93fc0121ec045f135ec14b6304cab9787 /crypto/testmgr.c | |
parent | 57318528d074488d491275aa05dc91dd4bbd87eb (diff) | |
download | linux-crypto-70421b9453da2139d4f861a148b157b81cff388d.tar.gz linux-crypto-70421b9453da2139d4f861a148b157b81cff388d.zip |
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 5e349a6b..01553a67 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -2589,6 +2589,21 @@ static const struct alg_test_desc alg_test_descs[] = { } } }, { + .alg = "xts(twofish)", + .test = alg_test_skcipher, + .suite = { + .cipher = { + .enc = { + .vecs = tf_xts_enc_tv_template, + .count = TF_XTS_ENC_TEST_VECTORS + }, + .dec = { + .vecs = tf_xts_dec_tv_template, + .count = TF_XTS_DEC_TEST_VECTORS + } + } + } + }, { .alg = "zlib", .test = alg_test_pcomp, .suite = { |