Skip to content

Commit 4de5933

Browse files
jkivilinherbertx
authored andcommitted
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>
1 parent 0840605 commit 4de5933

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎crypto/tcrypt.c‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,6 +1297,18 @@ static int do_test(int m)
12971297
speed_template_16_24_32);
12981298
test_cipher_speed("cbc(camellia)", DECRYPT, sec, NULL, 0,
12991299
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);
13001312
break;
13011313

13021314
case 206:

0 commit comments

Comments
 (0)