diff options
author | Jan Glauber <jang@linux.vnet.ibm.com> | 2011-04-26 02:34:01 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-05-04 01:06:37 -0400 |
commit | 9996e3421cae20a17c99881b2ac0f7562f760e04 (patch) | |
tree | 2293dbaf7bcefc4913940f5f31d5a589e3edb1f6 /crypto | |
parent | d393d9b8ca7f3296b50cb6fd0dc550ed6f72cdbc (diff) |
crypto: tcrypt - CTR mode speed test for AES
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>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/tcrypt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index e912ea5def3d..2222617b3bed 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c | |||
@@ -1009,6 +1009,10 @@ static int do_test(int m) | |||
1009 | speed_template_32_48_64); | 1009 | speed_template_32_48_64); |
1010 | test_cipher_speed("xts(aes)", DECRYPT, sec, NULL, 0, | 1010 | test_cipher_speed("xts(aes)", DECRYPT, sec, NULL, 0, |
1011 | speed_template_32_48_64); | 1011 | speed_template_32_48_64); |
1012 | test_cipher_speed("ctr(aes)", ENCRYPT, sec, NULL, 0, | ||
1013 | speed_template_16_24_32); | ||
1014 | test_cipher_speed("ctr(aes)", DECRYPT, sec, NULL, 0, | ||
1015 | speed_template_16_24_32); | ||
1012 | break; | 1016 | break; |
1013 | 1017 | ||
1014 | case 201: | 1018 | case 201: |