summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorJohannes Goetzfried <Johannes.Goetzfried@informatik.stud.uni-erlangen.de>2012-07-11 19:37:21 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2012-08-01 17:47:29 +0800
commita2c5826095562983bf316e3a7eb137ef04a71a24 (patch)
treec8b5176a619caca8841462da46a019c622065b59 /crypto/testmgr.c
parent270b0c6b406a0ae7673ee880d1d7cc6bd6c904de (diff)
downloadop-kernel-dev-a2c5826095562983bf316e3a7eb137ef04a71a24.zip
op-kernel-dev-a2c5826095562983bf316e3a7eb137ef04a71a24.tar.gz
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.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index a2ca743..7a91e54 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -1818,6 +1818,21 @@ static const struct alg_test_desc alg_test_descs[] = {
}
}
}, {
+ .alg = "cbc(cast5)",
+ .test = alg_test_skcipher,
+ .suite = {
+ .cipher = {
+ .enc = {
+ .vecs = cast5_cbc_enc_tv_template,
+ .count = CAST5_CBC_ENC_TEST_VECTORS
+ },
+ .dec = {
+ .vecs = cast5_cbc_dec_tv_template,
+ .count = CAST5_CBC_DEC_TEST_VECTORS
+ }
+ }
+ }
+ }, {
.alg = "cbc(des)",
.test = alg_test_skcipher,
.suite = {
@@ -2054,6 +2069,21 @@ static const struct alg_test_desc alg_test_descs[] = {
}
}
}, {
+ .alg = "ctr(cast5)",
+ .test = alg_test_skcipher,
+ .suite = {
+ .cipher = {
+ .enc = {
+ .vecs = cast5_ctr_enc_tv_template,
+ .count = CAST5_CTR_ENC_TEST_VECTORS
+ },
+ .dec = {
+ .vecs = cast5_ctr_dec_tv_template,
+ .count = CAST5_CTR_DEC_TEST_VECTORS
+ }
+ }
+ }
+ }, {
.alg = "ctr(serpent)",
.test = alg_test_skcipher,
.suite = {
OpenPOWER on IntegriCloud