Skip to content

Commit

Permalink
crypto: tcrypt - add xts(twofish) tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jussi Kivilinna <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
jkivilin authored and herbertx committed Nov 9, 2011
1 parent aed265b commit 131f754
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crypto/tcrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,7 @@ static int do_test(int m)
ret += tcrypt_test("cbc(twofish)");
ret += tcrypt_test("ctr(twofish)");
ret += tcrypt_test("lrw(twofish)");
ret += tcrypt_test("xts(twofish)");
break;

case 9:
Expand Down Expand Up @@ -1255,6 +1256,10 @@ static int do_test(int m)
speed_template_32_40_48);
test_cipher_speed("lrw(twofish)", DECRYPT, sec, NULL, 0,
speed_template_32_40_48);
test_cipher_speed("xts(twofish)", ENCRYPT, sec, NULL, 0,
speed_template_32_48_64);
test_cipher_speed("xts(twofish)", DECRYPT, sec, NULL, 0,
speed_template_32_48_64);
break;

case 203:
Expand Down

0 comments on commit 131f754

Please sign in to comment.