crypto: tcrypt - add ctr(twofish) speed test
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Mon, 26 Sep 2011 13:47:15 +0000 (16:47 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Oct 2011 12:23:08 +0000 (14:23 +0200)
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c

index e353a28b0b1762f2a06308f349e82b6c60ba5c69..fc35650645e8a9cb6c27204959276086b18ee283 100644 (file)
@@ -1039,6 +1039,10 @@ static int do_test(int m)
                                speed_template_16_24_32);
                test_cipher_speed("cbc(twofish)", DECRYPT, sec, NULL, 0,
                                speed_template_16_24_32);
+               test_cipher_speed("ctr(twofish)", ENCRYPT, sec, NULL, 0,
+                               speed_template_16_24_32);
+               test_cipher_speed("ctr(twofish)", DECRYPT, sec, NULL, 0,
+                               speed_template_16_24_32);
                break;
 
        case 203: