diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2011-10-18 06:33:38 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-11-08 22:57:56 -0500 |
commit | 131f754161bc01fcf7fbbb08c754ed0e5a62b524 (patch) | |
tree | 8195f45e44b4d82278a789b1ff1ef650f84283cc /crypto/tcrypt.c | |
parent | aed265b9fef4a6389e81b98b5c5eb5cd80ef5ead (diff) |
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>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r-- | crypto/tcrypt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index a66459594bed..7736a9f05aba 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c | |||
@@ -991,6 +991,7 @@ static int do_test(int m) | |||
991 | ret += tcrypt_test("cbc(twofish)"); | 991 | ret += tcrypt_test("cbc(twofish)"); |
992 | ret += tcrypt_test("ctr(twofish)"); | 992 | ret += tcrypt_test("ctr(twofish)"); |
993 | ret += tcrypt_test("lrw(twofish)"); | 993 | ret += tcrypt_test("lrw(twofish)"); |
994 | ret += tcrypt_test("xts(twofish)"); | ||
994 | break; | 995 | break; |
995 | 996 | ||
996 | case 9: | 997 | case 9: |
@@ -1255,6 +1256,10 @@ static int do_test(int m) | |||
1255 | speed_template_32_40_48); | 1256 | speed_template_32_40_48); |
1256 | test_cipher_speed("lrw(twofish)", DECRYPT, sec, NULL, 0, | 1257 | test_cipher_speed("lrw(twofish)", DECRYPT, sec, NULL, 0, |
1257 | speed_template_32_40_48); | 1258 | 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); | ||
1258 | break; | 1263 | break; |
1259 | 1264 | ||
1260 | case 203: | 1265 | case 203: |