diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2012-10-26 14:48:51 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2012-11-09 17:32:28 +0800 |
commit | bf9c5181865f1cc12f934eac182bbd06438ffecc (patch) | |
tree | 187f7d62f379c6081fb2ec29986f2cdc1f8f83ea /crypto | |
parent | d48e366e6efe46e0a6744980c18582fb0919a727 (diff) | |
download | op-kernel-dev-bf9c5181865f1cc12f934eac182bbd06438ffecc.zip op-kernel-dev-bf9c5181865f1cc12f934eac182bbd06438ffecc.tar.gz |
crypto: tcrypt - add async speed test for camellia cipher
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/tcrypt.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 71b58c6..7ae2130 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -1728,6 +1728,29 @@ static int do_test(int m) speed_template_32_64); break; + case 508: + test_acipher_speed("ecb(camellia)", ENCRYPT, sec, NULL, 0, + speed_template_16_32); + test_acipher_speed("ecb(camellia)", DECRYPT, sec, NULL, 0, + speed_template_16_32); + test_acipher_speed("cbc(camellia)", ENCRYPT, sec, NULL, 0, + speed_template_16_32); + test_acipher_speed("cbc(camellia)", DECRYPT, sec, NULL, 0, + speed_template_16_32); + test_acipher_speed("ctr(camellia)", ENCRYPT, sec, NULL, 0, + speed_template_16_32); + test_acipher_speed("ctr(camellia)", DECRYPT, sec, NULL, 0, + speed_template_16_32); + test_acipher_speed("lrw(camellia)", ENCRYPT, sec, NULL, 0, + speed_template_32_48); + test_acipher_speed("lrw(camellia)", DECRYPT, sec, NULL, 0, + speed_template_32_48); + test_acipher_speed("xts(camellia)", ENCRYPT, sec, NULL, 0, + speed_template_32_64); + test_acipher_speed("xts(camellia)", DECRYPT, sec, NULL, 0, + speed_template_32_64); + break; + case 1000: test_available(); break; |