Skip to content

Commit aed265b

Browse files
jkivilinherbertx
authored andcommitted
crypto: testmgr - add xts(twofish) test vectors
Add test vectors for xts(twofish). These are generated from xts(twofish) test vectors. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 5209c07 commit aed265b

2 files changed

Lines changed: 696 additions & 0 deletions

File tree

‎crypto/testmgr.c‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2588,6 +2588,21 @@ static const struct alg_test_desc alg_test_descs[] = {
25882588
}
25892589
}
25902590
}
2591+
}, {
2592+
.alg = "xts(twofish)",
2593+
.test = alg_test_skcipher,
2594+
.suite = {
2595+
.cipher = {
2596+
.enc = {
2597+
.vecs = tf_xts_enc_tv_template,
2598+
.count = TF_XTS_ENC_TEST_VECTORS
2599+
},
2600+
.dec = {
2601+
.vecs = tf_xts_dec_tv_template,
2602+
.count = TF_XTS_DEC_TEST_VECTORS
2603+
}
2604+
}
2605+
}
25912606
}, {
25922607
.alg = "zlib",
25932608
.test = alg_test_pcomp,

0 commit comments

Comments
 (0)