aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorJohannes Goetzfried <Johannes.Goetzfried@informatik.stud.uni-erlangen.de>2012-07-11 13:38:29 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2012-08-01 05:47:30 -0400
commit9b8b04051d0df1e2c7c31206caff05673a2c685f (patch)
treef41ccc3c93237e887e02868ac75e747c4314be8a /crypto/testmgr.c
parent2b49b906729644dd4696b9291b7e2f6cd1266dc0 (diff)
crypto: testmgr - add larger cast6 testvectors
New ECB, CBC, CTR, LRW and XTS testvectors for cast6. We need larger testvectors to check parallel code paths in the optimized implementation. Tests have also been added to the tcrypt module. Signed-off-by: Johannes Goetzfried <Johannes.Goetzfried@informatik.stud.uni-erlangen.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r--crypto/testmgr.c60
1 files changed, 60 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index def0f430b667..cff3c1c3f83c 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -1878,6 +1878,21 @@ static const struct alg_test_desc alg_test_descs[] = {
1878 } 1878 }
1879 } 1879 }
1880 }, { 1880 }, {
1881 .alg = "cbc(cast6)",
1882 .test = alg_test_skcipher,
1883 .suite = {
1884 .cipher = {
1885 .enc = {
1886 .vecs = cast6_cbc_enc_tv_template,
1887 .count = CAST6_CBC_ENC_TEST_VECTORS
1888 },
1889 .dec = {
1890 .vecs = cast6_cbc_dec_tv_template,
1891 .count = CAST6_CBC_DEC_TEST_VECTORS
1892 }
1893 }
1894 }
1895 }, {
1881 .alg = "cbc(des)", 1896 .alg = "cbc(des)",
1882 .test = alg_test_skcipher, 1897 .test = alg_test_skcipher,
1883 .suite = { 1898 .suite = {
@@ -2144,6 +2159,21 @@ static const struct alg_test_desc alg_test_descs[] = {
2144 } 2159 }
2145 } 2160 }
2146 }, { 2161 }, {
2162 .alg = "ctr(cast6)",
2163 .test = alg_test_skcipher,
2164 .suite = {
2165 .cipher = {
2166 .enc = {
2167 .vecs = cast6_ctr_enc_tv_template,
2168 .count = CAST6_CTR_ENC_TEST_VECTORS
2169 },
2170 .dec = {
2171 .vecs = cast6_ctr_dec_tv_template,
2172 .count = CAST6_CTR_DEC_TEST_VECTORS
2173 }
2174 }
2175 }
2176 }, {
2147 .alg = "ctr(serpent)", 2177 .alg = "ctr(serpent)",
2148 .test = alg_test_skcipher, 2178 .test = alg_test_skcipher,
2149 .suite = { 2179 .suite = {
@@ -2620,6 +2650,21 @@ static const struct alg_test_desc alg_test_descs[] = {
2620 } 2650 }
2621 } 2651 }
2622 }, { 2652 }, {
2653 .alg = "lrw(cast6)",
2654 .test = alg_test_skcipher,
2655 .suite = {
2656 .cipher = {
2657 .enc = {
2658 .vecs = cast6_lrw_enc_tv_template,
2659 .count = CAST6_LRW_ENC_TEST_VECTORS
2660 },
2661 .dec = {
2662 .vecs = cast6_lrw_dec_tv_template,
2663 .count = CAST6_LRW_DEC_TEST_VECTORS
2664 }
2665 }
2666 }
2667 }, {
2623 .alg = "lrw(serpent)", 2668 .alg = "lrw(serpent)",
2624 .test = alg_test_skcipher, 2669 .test = alg_test_skcipher,
2625 .suite = { 2670 .suite = {
@@ -2972,6 +3017,21 @@ static const struct alg_test_desc alg_test_descs[] = {
2972 } 3017 }
2973 } 3018 }
2974 }, { 3019 }, {
3020 .alg = "xts(cast6)",
3021 .test = alg_test_skcipher,
3022 .suite = {
3023 .cipher = {
3024 .enc = {
3025 .vecs = cast6_xts_enc_tv_template,
3026 .count = CAST6_XTS_ENC_TEST_VECTORS
3027 },
3028 .dec = {
3029 .vecs = cast6_xts_dec_tv_template,
3030 .count = CAST6_XTS_DEC_TEST_VECTORS
3031 }
3032 }
3033 }
3034 }, {
2975 .alg = "xts(serpent)", 3035 .alg = "xts(serpent)",
2976 .test = alg_test_skcipher, 3036 .test = alg_test_skcipher,
2977 .suite = { 3037 .suite = {