summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2011-10-18 13:33:17 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2011-11-09 11:57:56 +0800
commit18be20b9445731c57ef2fa0c7c9e71ac1b4a7872 (patch)
tree7126bae2743aae0061d4d493c1c2ece5d53bae48 /crypto/testmgr.c
parentce0045561e1edb92e4a509eb433ff52d3afaa258 (diff)
downloadblackbird-op-linux-18be20b9445731c57ef2fa0c7c9e71ac1b4a7872.tar.gz
blackbird-op-linux-18be20b9445731c57ef2fa0c7c9e71ac1b4a7872.zip
crypto: testmgr - add xts(serpent) test vectors
Add test vectors for xts(serpent). These are generated from xts(aes) test vectors. 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.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index ae33d3075ce7..5e349a6bc98a 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -2574,6 +2574,21 @@ static const struct alg_test_desc alg_test_descs[] = {
}
}
}, {
+ .alg = "xts(serpent)",
+ .test = alg_test_skcipher,
+ .suite = {
+ .cipher = {
+ .enc = {
+ .vecs = serpent_xts_enc_tv_template,
+ .count = SERPENT_XTS_ENC_TEST_VECTORS
+ },
+ .dec = {
+ .vecs = serpent_xts_dec_tv_template,
+ .count = SERPENT_XTS_DEC_TEST_VECTORS
+ }
+ }
+ }
+ }, {
.alg = "zlib",
.test = alg_test_pcomp,
.suite = {
OpenPOWER on IntegriCloud