From a9075dcf65c14f1269faad4ba0e2ed9b06dd3140 Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Wed, 3 Jul 2019 09:04:54 +0000 Subject: 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 --- src/plugins/unittest/crypto/crypto.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/unittest/crypto/crypto.h') 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; -- cgit 1.2.3-korg