summaryrefslogtreecommitdiffstats
path: root/crypto/tcrypt.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2011-10-18 13:32:56 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2011-11-09 11:53:32 +0800
commitbee3a90ef5366b58250e4369dac3268ced3351aa (patch)
treee5c84cf50b8d474f0c453ebf0f3f985a6877ba13 /crypto/tcrypt.c
parent0b2a15510699754b7c777a0f17520f1960c0d13a (diff)
downloadblackbird-op-linux-bee3a90ef5366b58250e4369dac3268ced3351aa.tar.gz
blackbird-op-linux-bee3a90ef5366b58250e4369dac3268ced3351aa.zip
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/tcrypt.c')
-rw-r--r--crypto/tcrypt.c5
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)
ret += tcrypt_test("ecb(twofish)");
ret += tcrypt_test("cbc(twofish)");
ret += tcrypt_test("ctr(twofish)");
+ ret += tcrypt_test("lrw(twofish)");
break;
case 9:
@@ -1249,6 +1250,10 @@ static int do_test(int m)
speed_template_16_24_32);
test_cipher_speed("ctr(twofish)", DECRYPT, sec, NULL, 0,
speed_template_16_24_32);
+ test_cipher_speed("lrw(twofish)", ENCRYPT, sec, NULL, 0,
+ speed_template_32_40_48);
+ test_cipher_speed("lrw(twofish)", DECRYPT, sec, NULL, 0,
+ speed_template_32_40_48);
break;
case 203:
OpenPOWER on IntegriCloud