aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-06-29 06:04:14 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2016-07-01 11:45:11 -0400
commit1503a24f53f153f8c88be9810bc73efaf6853e1c (patch)
treeda8f2471948063785f0f59fe5abc82531429d4fc /crypto
parent32f27c745c26ff4b6351bce265cba049a2c74de5 (diff)
crypto: tcrypt - Add speed test for cts
This patch adds speed tests for cts(cbc(aes)). Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/tcrypt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 68064fc9c8ee..11aedae02382 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1389,6 +1389,10 @@ static int do_test(const char *alg, u32 type, u32 mask, int m)
1389 speed_template_32_48_64); 1389 speed_template_32_48_64);
1390 test_cipher_speed("xts(aes)", DECRYPT, sec, NULL, 0, 1390 test_cipher_speed("xts(aes)", DECRYPT, sec, NULL, 0,
1391 speed_template_32_48_64); 1391 speed_template_32_48_64);
1392 test_cipher_speed("cts(cbc(aes))", ENCRYPT, sec, NULL, 0,
1393 speed_template_16_24_32);
1394 test_cipher_speed("cts(cbc(aes))", DECRYPT, sec, NULL, 0,
1395 speed_template_16_24_32);
1392 test_cipher_speed("ctr(aes)", ENCRYPT, sec, NULL, 0, 1396 test_cipher_speed("ctr(aes)", ENCRYPT, sec, NULL, 0,
1393 speed_template_16_24_32); 1397 speed_template_16_24_32);
1394 test_cipher_speed("ctr(aes)", DECRYPT, sec, NULL, 0, 1398 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)
1818 speed_template_32_48_64); 1822 speed_template_32_48_64);
1819 test_acipher_speed("xts(aes)", DECRYPT, sec, NULL, 0, 1823 test_acipher_speed("xts(aes)", DECRYPT, sec, NULL, 0,
1820 speed_template_32_48_64); 1824 speed_template_32_48_64);
1825 test_acipher_speed("cts(cbc(aes))", ENCRYPT, sec, NULL, 0,
1826 speed_template_16_24_32);
1827 test_acipher_speed("cts(cbc(aes))", DECRYPT, sec, NULL, 0,
1828 speed_template_16_24_32);
1821 test_acipher_speed("ctr(aes)", ENCRYPT, sec, NULL, 0, 1829 test_acipher_speed("ctr(aes)", ENCRYPT, sec, NULL, 0,
1822 speed_template_16_24_32); 1830 speed_template_16_24_32);
1823 test_acipher_speed("ctr(aes)", DECRYPT, sec, NULL, 0, 1831 test_acipher_speed("ctr(aes)", DECRYPT, sec, NULL, 0,