aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@iki.fi>2013-04-13 06:46:40 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2013-04-25 09:09:03 -0400
commitad8b7c3e92868dd86c54d9d5321000bbb4096f0d (patch)
tree3895f3370e58a89eca08729f217d3606121ceab0 /crypto
parent23a836e87d6cd85dc456dde103dfc69c1743f95a (diff)
crypto: tcrypt - add async cipher speed tests for blowfish
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/tcrypt.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 24ea7dffd21e..66d254ce0d11 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1768,6 +1768,21 @@ static int do_test(int m)
1768 speed_template_32_64); 1768 speed_template_32_64);
1769 break; 1769 break;
1770 1770
1771 case 509:
1772 test_acipher_speed("ecb(blowfish)", ENCRYPT, sec, NULL, 0,
1773 speed_template_8_32);
1774 test_acipher_speed("ecb(blowfish)", DECRYPT, sec, NULL, 0,
1775 speed_template_8_32);
1776 test_acipher_speed("cbc(blowfish)", ENCRYPT, sec, NULL, 0,
1777 speed_template_8_32);
1778 test_acipher_speed("cbc(blowfish)", DECRYPT, sec, NULL, 0,
1779 speed_template_8_32);
1780 test_acipher_speed("ctr(blowfish)", ENCRYPT, sec, NULL, 0,
1781 speed_template_8_32);
1782 test_acipher_speed("ctr(blowfish)", DECRYPT, sec, NULL, 0,
1783 speed_template_8_32);
1784 break;
1785
1771 case 1000: 1786 case 1000:
1772 test_available(); 1787 test_available();
1773 break; 1788 break;