aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2011-10-17 17:02:53 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2011-11-08 22:42:59 -0500
commit9d25917d49d986c417c173bfde50f41f96c5b202 (patch)
treef11aa2bf478dccbbd32182fc7afa622ad00fdfb1 /crypto/testmgr.c
parent1ea6b8f48918282bdca0b32a34095504ee65bab5 (diff)
crypto: testmgr - add new serpent test vectors
Add new serpent tests for serpent_sse2 x86_64/i586 8-way/4-way 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.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index e91c1eb1722a..49436b900081 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -1675,6 +1675,21 @@ static const struct alg_test_desc alg_test_descs[] = {
1675 } 1675 }
1676 } 1676 }
1677 }, { 1677 }, {
1678 .alg = "cbc(serpent)",
1679 .test = alg_test_skcipher,
1680 .suite = {
1681 .cipher = {
1682 .enc = {
1683 .vecs = serpent_cbc_enc_tv_template,
1684 .count = SERPENT_CBC_ENC_TEST_VECTORS
1685 },
1686 .dec = {
1687 .vecs = serpent_cbc_dec_tv_template,
1688 .count = SERPENT_CBC_DEC_TEST_VECTORS
1689 }
1690 }
1691 }
1692 }, {
1678 .alg = "cbc(twofish)", 1693 .alg = "cbc(twofish)",
1679 .test = alg_test_skcipher, 1694 .test = alg_test_skcipher,
1680 .suite = { 1695 .suite = {
@@ -1771,6 +1786,21 @@ static const struct alg_test_desc alg_test_descs[] = {
1771 } 1786 }
1772 } 1787 }
1773 }, { 1788 }, {
1789 .alg = "ctr(serpent)",
1790 .test = alg_test_skcipher,
1791 .suite = {
1792 .cipher = {
1793 .enc = {
1794 .vecs = serpent_ctr_enc_tv_template,
1795 .count = SERPENT_CTR_ENC_TEST_VECTORS
1796 },
1797 .dec = {
1798 .vecs = serpent_ctr_dec_tv_template,
1799 .count = SERPENT_CTR_DEC_TEST_VECTORS
1800 }
1801 }
1802 }
1803 }, {
1774 .alg = "ctr(twofish)", 1804 .alg = "ctr(twofish)",
1775 .test = alg_test_skcipher, 1805 .test = alg_test_skcipher,
1776 .suite = { 1806 .suite = {