diff options
author | Tim Chen <tim.c.chen@linux.intel.com> | 2013-12-11 17:28:47 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-12-20 07:06:25 -0500 |
commit | 53f52d7aecb4cb3772872c902b73e0c685a56901 (patch) | |
tree | c5036631bbdcdf22782765c71ed5afcaa4edc00b /crypto/tcrypt.h | |
parent | d764593af924930d5c15685bc5946cb943da1a55 (diff) |
crypto: tcrypt - Added speed tests for AEAD crypto alogrithms in tcrypt test suite
Adding simple speed tests for a range of block sizes for AEAD crypto
algorithms.
Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.h')
-rw-r--r-- | crypto/tcrypt.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/tcrypt.h b/crypto/tcrypt.h index ecdeeb1a7b05..6c7e21a09f78 100644 --- a/crypto/tcrypt.h +++ b/crypto/tcrypt.h | |||
@@ -22,6 +22,11 @@ struct cipher_speed_template { | |||
22 | unsigned int klen; | 22 | unsigned int klen; |
23 | }; | 23 | }; |
24 | 24 | ||
25 | struct aead_speed_template { | ||
26 | const char *key; | ||
27 | unsigned int klen; | ||
28 | }; | ||
29 | |||
25 | struct hash_speed { | 30 | struct hash_speed { |
26 | unsigned int blen; /* buffer length */ | 31 | unsigned int blen; /* buffer length */ |
27 | unsigned int plen; /* per-update length */ | 32 | unsigned int plen; /* per-update length */ |
@@ -58,6 +63,11 @@ static u8 speed_template_32_48_64[] = {32, 48, 64, 0}; | |||
58 | static u8 speed_template_32_64[] = {32, 64, 0}; | 63 | static u8 speed_template_32_64[] = {32, 64, 0}; |
59 | 64 | ||
60 | /* | 65 | /* |
66 | * AEAD speed tests | ||
67 | */ | ||
68 | static u8 aead_speed_template_20[] = {20, 0}; | ||
69 | |||
70 | /* | ||
61 | * Digest speed tests | 71 | * Digest speed tests |
62 | */ | 72 | */ |
63 | static struct hash_speed generic_hash_speed_template[] = { | 73 | static struct hash_speed generic_hash_speed_template[] = { |