summaryrefslogtreecommitdiffstats
path: root/src/plugins/unittest/crypto/aes_cbc.c
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/aes_cbc.c
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/aes_cbc.c')
-rw-r--r--src/plugins/unittest/crypto/aes_cbc.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/plugins/unittest/crypto/aes_cbc.c b/src/plugins/unittest/crypto/aes_cbc.c
index b3e95e4c093..05a16c29a5c 100644
--- a/src/plugins/unittest/crypto/aes_cbc.c
+++ b/src/plugins/unittest/crypto/aes_cbc.c
@@ -137,6 +137,20 @@ UNITTEST_REGISTER_CRYPTO_TEST (nist_aes256_cbc_chained) = {
TEST_DATA_CHUNK (ciphertext256, 32, 32),
},
};
+
+UNITTEST_REGISTER_CRYPTO_TEST (nist_aes256_incr) = {
+ .name = "NIST SP 800-38A incr (1024 B)",
+ .alg = VNET_CRYPTO_ALG_AES_256_CBC,
+ .key.length = 32,
+ .plaintext_incremental = 1024,
+};
+
+UNITTEST_REGISTER_CRYPTO_TEST (nist_aes256_incr2) = {
+ .name = "NIST SP 800-38A incr (1056 B)",
+ .alg = VNET_CRYPTO_ALG_AES_256_CBC,
+ .key.length = 32,
+ .plaintext_incremental = 1056,
+};
/* *INDENT-ON* */
/*