diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2012-10-26 07:48:51 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2012-11-09 04:32:28 -0500 |
commit | bf9c5181865f1cc12f934eac182bbd06438ffecc (patch) | |
tree | 187f7d62f379c6081fb2ec29986f2cdc1f8f83ea /crypto/tcrypt.c | |
parent | d48e366e6efe46e0a6744980c18582fb0919a727 (diff) |
crypto: tcrypt - add async speed test for camellia cipher
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r-- | crypto/tcrypt.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 71b58c6e5c18..7ae2130e1b00 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c | |||
@@ -1728,6 +1728,29 @@ static int do_test(int m) | |||
1728 | speed_template_32_64); | 1728 | speed_template_32_64); |
1729 | break; | 1729 | break; |
1730 | 1730 | ||
1731 | case 508: | ||
1732 | test_acipher_speed("ecb(camellia)", ENCRYPT, sec, NULL, 0, | ||
1733 | speed_template_16_32); | ||
1734 | test_acipher_speed("ecb(camellia)", DECRYPT, sec, NULL, 0, | ||
1735 | speed_template_16_32); | ||
1736 | test_acipher_speed("cbc(camellia)", ENCRYPT, sec, NULL, 0, | ||
1737 | speed_template_16_32); | ||
1738 | test_acipher_speed("cbc(camellia)", DECRYPT, sec, NULL, 0, | ||
1739 | speed_template_16_32); | ||
1740 | test_acipher_speed("ctr(camellia)", ENCRYPT, sec, NULL, 0, | ||
1741 | speed_template_16_32); | ||
1742 | test_acipher_speed("ctr(camellia)", DECRYPT, sec, NULL, 0, | ||
1743 | speed_template_16_32); | ||
1744 | test_acipher_speed("lrw(camellia)", ENCRYPT, sec, NULL, 0, | ||
1745 | speed_template_32_48); | ||
1746 | test_acipher_speed("lrw(camellia)", DECRYPT, sec, NULL, 0, | ||
1747 | speed_template_32_48); | ||
1748 | test_acipher_speed("xts(camellia)", ENCRYPT, sec, NULL, 0, | ||
1749 | speed_template_32_64); | ||
1750 | test_acipher_speed("xts(camellia)", DECRYPT, sec, NULL, 0, | ||
1751 | speed_template_32_64); | ||
1752 | break; | ||
1753 | |||
1731 | case 1000: | 1754 | case 1000: |
1732 | test_available(); | 1755 | test_available(); |
1733 | break; | 1756 | break; |