aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/tcrypt.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2011-10-17 17:03:03 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2011-11-08 22:42:59 -0500
commit7fb7fe4469d0b870a031a5d33676343979b80625 (patch)
treebeb2d5cb8143119a8c0df668ddcf208f614b6850 /crypto/tcrypt.c
parent3f3baf359dd3cc56fbaf9a2fb1a425ce7c18dbff (diff)
crypto: tcrypt - add serpent speed tests
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r--crypto/tcrypt.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index dd3a0f8a0912..5526065e8e79 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -1292,6 +1292,21 @@ static int do_test(int m)
1292 speed_template_16_32); 1292 speed_template_16_32);
1293 break; 1293 break;
1294 1294
1295 case 207:
1296 test_cipher_speed("ecb(serpent)", ENCRYPT, sec, NULL, 0,
1297 speed_template_16_32);
1298 test_cipher_speed("ecb(serpent)", DECRYPT, sec, NULL, 0,
1299 speed_template_16_32);
1300 test_cipher_speed("cbc(serpent)", ENCRYPT, sec, NULL, 0,
1301 speed_template_16_32);
1302 test_cipher_speed("cbc(serpent)", DECRYPT, sec, NULL, 0,
1303 speed_template_16_32);
1304 test_cipher_speed("ctr(serpent)", ENCRYPT, sec, NULL, 0,
1305 speed_template_16_32);
1306 test_cipher_speed("ctr(serpent)", DECRYPT, sec, NULL, 0,
1307 speed_template_16_32);
1308 break;
1309
1295 case 300: 1310 case 300:
1296 /* fall through */ 1311 /* fall through */
1297 1312
@@ -1493,6 +1508,21 @@ static int do_test(int m)
1493 speed_template_8); 1508 speed_template_8);
1494 break; 1509 break;
1495 1510
1511 case 503:
1512 test_acipher_speed("ecb(serpent)", ENCRYPT, sec, NULL, 0,
1513 speed_template_16_32);
1514 test_acipher_speed("ecb(serpent)", DECRYPT, sec, NULL, 0,
1515 speed_template_16_32);
1516 test_acipher_speed("cbc(serpent)", ENCRYPT, sec, NULL, 0,
1517 speed_template_16_32);
1518 test_acipher_speed("cbc(serpent)", DECRYPT, sec, NULL, 0,
1519 speed_template_16_32);
1520 test_acipher_speed("ctr(serpent)", ENCRYPT, sec, NULL, 0,
1521 speed_template_16_32);
1522 test_acipher_speed("ctr(serpent)", DECRYPT, sec, NULL, 0,
1523 speed_template_16_32);
1524 break;
1525
1496 case 1000: 1526 case 1000:
1497 test_available(); 1527 test_available();
1498 break; 1528 break;