crypto: tcrypt - Add speed test for cts
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 29 Jun 2016 10:04:14 +0000 (18:04 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Jul 2016 15:45:11 +0000 (23:45 +0800)
This patch adds speed tests for cts(cbc(aes)).

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c

index 68064fc9c8ee3fe32ec78934910e6c4c1e8c435a..11aedae02382de3f010917065af69619b470bbd4 100644 (file)
@@ -1389,6 +1389,10 @@ static int do_test(const char *alg, u32 type, u32 mask, int m)
                                speed_template_32_48_64);
                test_cipher_speed("xts(aes)", DECRYPT, sec, NULL, 0,
                                speed_template_32_48_64);
+               test_cipher_speed("cts(cbc(aes))", ENCRYPT, sec, NULL, 0,
+                               speed_template_16_24_32);
+               test_cipher_speed("cts(cbc(aes))", DECRYPT, sec, NULL, 0,
+                               speed_template_16_24_32);
                test_cipher_speed("ctr(aes)", ENCRYPT, sec, NULL, 0,
                                speed_template_16_24_32);
                test_cipher_speed("ctr(aes)", DECRYPT, sec, NULL, 0,
@@ -1818,6 +1822,10 @@ static int do_test(const char *alg, u32 type, u32 mask, int m)
                                   speed_template_32_48_64);
                test_acipher_speed("xts(aes)", DECRYPT, sec, NULL, 0,
                                   speed_template_32_48_64);
+               test_acipher_speed("cts(cbc(aes))", ENCRYPT, sec, NULL, 0,
+                                  speed_template_16_24_32);
+               test_acipher_speed("cts(cbc(aes))", DECRYPT, sec, NULL, 0,
+                                  speed_template_16_24_32);
                test_acipher_speed("ctr(aes)", ENCRYPT, sec, NULL, 0,
                                   speed_template_16_24_32);
                test_acipher_speed("ctr(aes)", DECRYPT, sec, NULL, 0,