]> git.karo-electronics.de Git - linux-beck.git/commitdiff
crypto: tcrypt - add async cipher speed tests for blowfish
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 13 Apr 2013 10:46:40 +0000 (13:46 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Apr 2013 13:09:03 +0000 (21:09 +0800)
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c

index 24ea7dffd21e3783225930ab45d45d6483280634..66d254ce0d11b35ca55e07b8b0fd786c0b0f0c10 100644 (file)
@@ -1768,6 +1768,21 @@ static int do_test(int m)
                                   speed_template_32_64);
                break;
 
+       case 509:
+               test_acipher_speed("ecb(blowfish)", ENCRYPT, sec, NULL, 0,
+                                  speed_template_8_32);
+               test_acipher_speed("ecb(blowfish)", DECRYPT, sec, NULL, 0,
+                                  speed_template_8_32);
+               test_acipher_speed("cbc(blowfish)", ENCRYPT, sec, NULL, 0,
+                                  speed_template_8_32);
+               test_acipher_speed("cbc(blowfish)", DECRYPT, sec, NULL, 0,
+                                  speed_template_8_32);
+               test_acipher_speed("ctr(blowfish)", ENCRYPT, sec, NULL, 0,
+                                  speed_template_8_32);
+               test_acipher_speed("ctr(blowfish)", DECRYPT, sec, NULL, 0,
+                                  speed_template_8_32);
+               break;
+
        case 1000:
                test_available();
                break;