diff options
author | Johannes Goetzfried <Johannes.Goetzfried@informatik.stud.uni-erlangen.de> | 2012-07-11 13:37:21 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2012-08-01 05:47:29 -0400 |
commit | a2c5826095562983bf316e3a7eb137ef04a71a24 (patch) | |
tree | c8b5176a619caca8841462da46a019c622065b59 /crypto/testmgr.c | |
parent | 270b0c6b406a0ae7673ee880d1d7cc6bd6c904de (diff) |
crypto: testmgr - add larger cast5 testvectors
New ECB, CBC and CTR testvectors for cast5. 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.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index a2ca7431760a..7a91e540563f 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c | |||
@@ -1818,6 +1818,21 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
1818 | } | 1818 | } |
1819 | } | 1819 | } |
1820 | }, { | 1820 | }, { |
1821 | .alg = "cbc(cast5)", | ||
1822 | .test = alg_test_skcipher, | ||
1823 | .suite = { | ||
1824 | .cipher = { | ||
1825 | .enc = { | ||
1826 | .vecs = cast5_cbc_enc_tv_template, | ||
1827 | .count = CAST5_CBC_ENC_TEST_VECTORS | ||
1828 | }, | ||
1829 | .dec = { | ||
1830 | .vecs = cast5_cbc_dec_tv_template, | ||
1831 | .count = CAST5_CBC_DEC_TEST_VECTORS | ||
1832 | } | ||
1833 | } | ||
1834 | } | ||
1835 | }, { | ||
1821 | .alg = "cbc(des)", | 1836 | .alg = "cbc(des)", |
1822 | .test = alg_test_skcipher, | 1837 | .test = alg_test_skcipher, |
1823 | .suite = { | 1838 | .suite = { |
@@ -2054,6 +2069,21 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
2054 | } | 2069 | } |
2055 | } | 2070 | } |
2056 | }, { | 2071 | }, { |
2072 | .alg = "ctr(cast5)", | ||
2073 | .test = alg_test_skcipher, | ||
2074 | .suite = { | ||
2075 | .cipher = { | ||
2076 | .enc = { | ||
2077 | .vecs = cast5_ctr_enc_tv_template, | ||
2078 | .count = CAST5_CTR_ENC_TEST_VECTORS | ||
2079 | }, | ||
2080 | .dec = { | ||
2081 | .vecs = cast5_ctr_dec_tv_template, | ||
2082 | .count = CAST5_CTR_DEC_TEST_VECTORS | ||
2083 | } | ||
2084 | } | ||
2085 | } | ||
2086 | }, { | ||
2057 | .alg = "ctr(serpent)", | 2087 | .alg = "ctr(serpent)", |
2058 | .test = alg_test_skcipher, | 2088 | .test = alg_test_skcipher, |
2059 | .suite = { | 2089 | .suite = { |