diff options
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r-- | crypto/tcrypt.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 5cf2ccb1540c..a94bbd77dc60 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c | |||
@@ -1037,6 +1037,8 @@ static int do_test(int m) | |||
1037 | 1037 | ||
1038 | case 14: | 1038 | case 14: |
1039 | ret += tcrypt_test("ecb(cast5)"); | 1039 | ret += tcrypt_test("ecb(cast5)"); |
1040 | ret += tcrypt_test("cbc(cast5)"); | ||
1041 | ret += tcrypt_test("ctr(cast5)"); | ||
1040 | break; | 1042 | break; |
1041 | 1043 | ||
1042 | case 15: | 1044 | case 15: |
@@ -1359,6 +1361,21 @@ static int do_test(int m) | |||
1359 | speed_template_8); | 1361 | speed_template_8); |
1360 | break; | 1362 | break; |
1361 | 1363 | ||
1364 | case 209: | ||
1365 | test_cipher_speed("ecb(cast5)", ENCRYPT, sec, NULL, 0, | ||
1366 | speed_template_8_16); | ||
1367 | test_cipher_speed("ecb(cast5)", DECRYPT, sec, NULL, 0, | ||
1368 | speed_template_8_16); | ||
1369 | test_cipher_speed("cbc(cast5)", ENCRYPT, sec, NULL, 0, | ||
1370 | speed_template_8_16); | ||
1371 | test_cipher_speed("cbc(cast5)", DECRYPT, sec, NULL, 0, | ||
1372 | speed_template_8_16); | ||
1373 | test_cipher_speed("ctr(cast5)", ENCRYPT, sec, NULL, 0, | ||
1374 | speed_template_8_16); | ||
1375 | test_cipher_speed("ctr(cast5)", DECRYPT, sec, NULL, 0, | ||
1376 | speed_template_8_16); | ||
1377 | break; | ||
1378 | |||
1362 | case 300: | 1379 | case 300: |
1363 | /* fall through */ | 1380 | /* fall through */ |
1364 | 1381 | ||
@@ -1639,6 +1656,21 @@ static int do_test(int m) | |||
1639 | speed_template_8); | 1656 | speed_template_8); |
1640 | break; | 1657 | break; |
1641 | 1658 | ||
1659 | case 506: | ||
1660 | test_acipher_speed("ecb(cast5)", ENCRYPT, sec, NULL, 0, | ||
1661 | speed_template_8_16); | ||
1662 | test_acipher_speed("ecb(cast5)", DECRYPT, sec, NULL, 0, | ||
1663 | speed_template_8_16); | ||
1664 | test_acipher_speed("cbc(cast5)", ENCRYPT, sec, NULL, 0, | ||
1665 | speed_template_8_16); | ||
1666 | test_acipher_speed("cbc(cast5)", DECRYPT, sec, NULL, 0, | ||
1667 | speed_template_8_16); | ||
1668 | test_acipher_speed("ctr(cast5)", ENCRYPT, sec, NULL, 0, | ||
1669 | speed_template_8_16); | ||
1670 | test_acipher_speed("ctr(cast5)", DECRYPT, sec, NULL, 0, | ||
1671 | speed_template_8_16); | ||
1672 | break; | ||
1673 | |||
1642 | case 1000: | 1674 | case 1000: |
1643 | test_available(); | 1675 | test_available(); |
1644 | break; | 1676 | break; |