Commit 1503a24f authored by Herbert Xu's avatar Herbert Xu

crypto: tcrypt - Add speed test for cts

This patch adds speed tests for cts(cbc(aes)).
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 32f27c74
...@@ -1389,6 +1389,10 @@ static int do_test(const char *alg, u32 type, u32 mask, int m) ...@@ -1389,6 +1389,10 @@ static int do_test(const char *alg, u32 type, u32 mask, int m)
speed_template_32_48_64); speed_template_32_48_64);
test_cipher_speed("xts(aes)", DECRYPT, sec, NULL, 0, test_cipher_speed("xts(aes)", DECRYPT, sec, NULL, 0,
speed_template_32_48_64); 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, test_cipher_speed("ctr(aes)", ENCRYPT, sec, NULL, 0,
speed_template_16_24_32); speed_template_16_24_32);
test_cipher_speed("ctr(aes)", DECRYPT, sec, NULL, 0, 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,6 +1822,10 @@ static int do_test(const char *alg, u32 type, u32 mask, int m)
speed_template_32_48_64); speed_template_32_48_64);
test_acipher_speed("xts(aes)", DECRYPT, sec, NULL, 0, test_acipher_speed("xts(aes)", DECRYPT, sec, NULL, 0,
speed_template_32_48_64); 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, test_acipher_speed("ctr(aes)", ENCRYPT, sec, NULL, 0,
speed_template_16_24_32); speed_template_16_24_32);
test_acipher_speed("ctr(aes)", DECRYPT, sec, NULL, 0, test_acipher_speed("ctr(aes)", DECRYPT, sec, NULL, 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment