diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2012-03-05 13:26:26 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2012-03-14 05:25:55 -0400 |
commit | 4de5933780f897b89e4863fa545c08a086325353 (patch) | |
tree | 9fa4b9ce6570a0db771ced71a81597f02cf777e6 /crypto | |
parent | 0840605eb47cf27e191017c4143fcb9cf7d82064 (diff) |
crypto: tcrypt - add more camellia tests
Add tests for CTR, LRW and XTS modes.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/tcrypt.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 7736a9f05aba..8f147bff0980 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c | |||
@@ -1297,6 +1297,18 @@ static int do_test(int m) | |||
1297 | speed_template_16_24_32); | 1297 | speed_template_16_24_32); |
1298 | test_cipher_speed("cbc(camellia)", DECRYPT, sec, NULL, 0, | 1298 | test_cipher_speed("cbc(camellia)", DECRYPT, sec, NULL, 0, |
1299 | speed_template_16_24_32); | 1299 | speed_template_16_24_32); |
1300 | test_cipher_speed("ctr(camellia)", ENCRYPT, sec, NULL, 0, | ||
1301 | speed_template_16_24_32); | ||
1302 | test_cipher_speed("ctr(camellia)", DECRYPT, sec, NULL, 0, | ||
1303 | speed_template_16_24_32); | ||
1304 | test_cipher_speed("lrw(camellia)", ENCRYPT, sec, NULL, 0, | ||
1305 | speed_template_32_40_48); | ||
1306 | test_cipher_speed("lrw(camellia)", DECRYPT, sec, NULL, 0, | ||
1307 | speed_template_32_40_48); | ||
1308 | test_cipher_speed("xts(camellia)", ENCRYPT, sec, NULL, 0, | ||
1309 | speed_template_32_48_64); | ||
1310 | test_cipher_speed("xts(camellia)", DECRYPT, sec, NULL, 0, | ||
1311 | speed_template_32_48_64); | ||
1300 | break; | 1312 | break; |
1301 | 1313 | ||
1302 | case 206: | 1314 | case 206: |