Skip to content

Commit

Permalink
crypto: tcrypt - Add rfc4309(ccm(aes)) speed test
Browse files Browse the repository at this point in the history
This patch adds a speed test for rfc4309(ccm(aes)) as mode 212.

Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
herbertx committed Jun 18, 2015
1 parent f657f82 commit 4e4aab6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crypto/tcrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
break;

case 212:
test_aead_speed("rfc4309(ccm(aes))", ENCRYPT, sec,
NULL, 0, 16, 8, aead_speed_template_19);
break;

case 300:
if (alg) {
test_hash_speed(alg, sec, generic_hash_speed_template);
Expand Down
1 change: 1 addition & 0 deletions crypto/tcrypt.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ static u8 speed_template_32_64[] = {32, 64, 0};
/*
* AEAD speed tests
*/
static u8 aead_speed_template_19[] = {19, 0};
static u8 aead_speed_template_20[] = {20, 0};

/*
Expand Down

0 comments on commit 4e4aab6

Please sign in to comment.