Commit 4e4aab63 authored by Herbert Xu's avatar Herbert Xu

crypto: tcrypt - Add rfc4309(ccm(aes)) speed test

This patch adds a speed test for rfc4309(ccm(aes)) as mode 212.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent f657f82c
...@@ -1761,6 +1761,11 @@ static int do_test(const char *alg, u32 type, u32 mask, int m) ...@@ -1761,6 +1761,11 @@ static int do_test(const char *alg, u32 type, u32 mask, int m)
NULL, 0, 16, 8, aead_speed_template_20); NULL, 0, 16, 8, aead_speed_template_20);
break; break;
case 212:
test_aead_speed("rfc4309(ccm(aes))", ENCRYPT, sec,
NULL, 0, 16, 8, aead_speed_template_19);
break;
case 300: case 300:
if (alg) { if (alg) {
test_hash_speed(alg, sec, generic_hash_speed_template); test_hash_speed(alg, sec, generic_hash_speed_template);
......
...@@ -65,6 +65,7 @@ static u8 speed_template_32_64[] = {32, 64, 0}; ...@@ -65,6 +65,7 @@ static u8 speed_template_32_64[] = {32, 64, 0};
/* /*
* AEAD speed tests * AEAD speed tests
*/ */
static u8 aead_speed_template_19[] = {19, 0};
static u8 aead_speed_template_20[] = {20, 0}; static u8 aead_speed_template_20[] = {20, 0};
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment