crypto: tcrypt - CTR mode speed test for AES
authorJan Glauber <jang@linux.vnet.ibm.com>
Tue, 26 Apr 2011 06:34:01 +0000 (16:34 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 4 May 2011 05:06:37 +0000 (15:06 +1000)
Add the CTR mode speed test for AES.

Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c

index e912ea5..2222617 100644 (file)
@@ -1009,6 +1009,10 @@ static int do_test(int m)
                                speed_template_32_48_64);
                test_cipher_speed("xts(aes)", DECRYPT, sec, NULL, 0,
                                speed_template_32_48_64);
+               test_cipher_speed("ctr(aes)", ENCRYPT, sec, NULL, 0,
+                               speed_template_16_24_32);
+               test_cipher_speed("ctr(aes)", DECRYPT, sec, NULL, 0,
+                               speed_template_16_24_32);
                break;
 
        case 201: