diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2011-10-10 16:03:12 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-10-21 08:28:58 -0400 |
commit | 573da6208a7e2b2d8666b8b02f5054d3a4e12998 (patch) | |
tree | 13d58aa01fd837e50518d6b5ee1a343bce7ccd9c /crypto/testmgr.c | |
parent | 85b63e342c7ee0b9ac5281a5dfb0f1355bf6d75d (diff) |
crypto: testmgr - add twofish tests
Add tests for parallel twofish-x86_64-3way code paths.
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 466f9c01e480..e91c1eb1722a 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c | |||
@@ -1771,6 +1771,21 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
1771 | } | 1771 | } |
1772 | } | 1772 | } |
1773 | }, { | 1773 | }, { |
1774 | .alg = "ctr(twofish)", | ||
1775 | .test = alg_test_skcipher, | ||
1776 | .suite = { | ||
1777 | .cipher = { | ||
1778 | .enc = { | ||
1779 | .vecs = tf_ctr_enc_tv_template, | ||
1780 | .count = TF_CTR_ENC_TEST_VECTORS | ||
1781 | }, | ||
1782 | .dec = { | ||
1783 | .vecs = tf_ctr_dec_tv_template, | ||
1784 | .count = TF_CTR_DEC_TEST_VECTORS | ||
1785 | } | ||
1786 | } | ||
1787 | } | ||
1788 | }, { | ||
1774 | .alg = "cts(cbc(aes))", | 1789 | .alg = "cts(cbc(aes))", |
1775 | .test = alg_test_skcipher, | 1790 | .test = alg_test_skcipher, |
1776 | .suite = { | 1791 | .suite = { |