Skip to content

Commit 131f754

Browse files
jkivilinherbertx
authored andcommitted
crypto: tcrypt - add xts(twofish) tests
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent aed265b commit 131f754

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎crypto/tcrypt.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,7 @@ static int do_test(int m)
991991
ret += tcrypt_test("cbc(twofish)");
992992
ret += tcrypt_test("ctr(twofish)");
993993
ret += tcrypt_test("lrw(twofish)");
994+
ret += tcrypt_test("xts(twofish)");
994995
break;
995996

996997
case 9:
@@ -1255,6 +1256,10 @@ static int do_test(int m)
12551256
speed_template_32_40_48);
12561257
test_cipher_speed("lrw(twofish)", DECRYPT, sec, NULL, 0,
12571258
speed_template_32_40_48);
1259+
test_cipher_speed("xts(twofish)", ENCRYPT, sec, NULL, 0,
1260+
speed_template_32_48_64);
1261+
test_cipher_speed("xts(twofish)", DECRYPT, sec, NULL, 0,
1262+
speed_template_32_48_64);
12581263
break;
12591264

12601265
case 203:

0 commit comments

Comments
 (0)