summaryrefslogtreecommitdiffstats
path: root/src/plugins/unittest/crypto/crypto.h
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2019-07-03 09:04:54 +0000
committerDamjan Marion <dmarion@me.com>2020-02-18 22:55:24 +0000
commita9075dcf65c14f1269faad4ba0e2ed9b06dd3140 (patch)
tree53557a600ff1224724f7cf37ea43c9c980f5627b /src/plugins/unittest/crypto/crypto.h
parentdd398c6c5cbf388e912de33dbe63a441fa1e0886 (diff)
crypto: add support for testing quad loops in crypto algos
This patch adds support for test cases with arbitrary long plaintext. Type: feature Change-Id: I48cd3642e30cc49eabc196c45d7f73c484e93057 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/plugins/unittest/crypto/crypto.h')
-rw-r--r--src/plugins/unittest/crypto/crypto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/unittest/crypto/crypto.h b/src/plugins/unittest/crypto/crypto.h
index d95c994dfd2..5e09a3ab0ec 100644
--- a/src/plugins/unittest/crypto/crypto.h
+++ b/src/plugins/unittest/crypto/crypto.h
@@ -31,6 +31,7 @@ typedef struct unittest_crypto_test_registration
vnet_crypto_alg_t alg;
unittest_crypto_test_data_t iv, key, digest, plaintext, ciphertext, aad,
tag;
+ u32 plaintext_incremental;
u8 is_chained;
/* plaintext and cipher text data used for testing chained buffers */
@@ -45,6 +46,7 @@ typedef struct unittest_crypto_test_registration
typedef struct
{
int verbose;
+ u8 *inc_data;
/* perf */
vnet_crypto_alg_t alg;