diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2011-10-18 06:32:56 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-11-08 22:53:32 -0500 |
commit | bee3a90ef5366b58250e4369dac3268ced3351aa (patch) | |
tree | e5c84cf50b8d474f0c453ebf0f3f985a6877ba13 /crypto | |
parent | 0b2a15510699754b7c777a0f17520f1960c0d13a (diff) |
crypto: tcrypt - add lrw(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')
-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 9a9e170035d1..01203833ccc2 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c | |||
@@ -990,6 +990,7 @@ static int do_test(int m) | |||
990 | ret += tcrypt_test("ecb(twofish)"); | 990 | ret += tcrypt_test("ecb(twofish)"); |
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 | break; | 994 | break; |
994 | 995 | ||
995 | case 9: | 996 | case 9: |
@@ -1249,6 +1250,10 @@ static int do_test(int m) | |||
1249 | speed_template_16_24_32); | 1250 | speed_template_16_24_32); |
1250 | test_cipher_speed("ctr(twofish)", DECRYPT, sec, NULL, 0, | 1251 | test_cipher_speed("ctr(twofish)", DECRYPT, sec, NULL, 0, |
1251 | speed_template_16_24_32); | 1252 | speed_template_16_24_32); |
1253 | test_cipher_speed("lrw(twofish)", ENCRYPT, sec, NULL, 0, | ||
1254 | speed_template_32_40_48); | ||
1255 | test_cipher_speed("lrw(twofish)", DECRYPT, sec, NULL, 0, | ||
1256 | speed_template_32_40_48); | ||
1252 | break; | 1257 | break; |
1253 | 1258 | ||
1254 | case 203: | 1259 | case 203: |