summaryrefslogtreecommitdiffstats
path: root/src/plugins/unittest/crypto/rfc2202_hmac_sha1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/unittest/crypto/rfc2202_hmac_sha1.c')
-rw-r--r--src/plugins/unittest/crypto/rfc2202_hmac_sha1.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/unittest/crypto/rfc2202_hmac_sha1.c b/src/plugins/unittest/crypto/rfc2202_hmac_sha1.c
index d009afe6af7..2513c5ebad2 100644
--- a/src/plugins/unittest/crypto/rfc2202_hmac_sha1.c
+++ b/src/plugins/unittest/crypto/rfc2202_hmac_sha1.c
@@ -216,9 +216,7 @@ UNITTEST_REGISTER_CRYPTO_TEST (rfc_2202_sha1_tc7) = {
.plaintext = TEST_DATA (sha1_tc7_data),
.digest = TEST_DATA (sha1_tc7_digest),
};
-/* *INDENT-ON* */
-/* *INDENT-OFF* */
UNITTEST_REGISTER_CRYPTO_TEST (rfc_2202_sha1_tc7_chained) = {
.name = "RFC2202 HMAC-SHA-1 TC7 [chained]",
.alg = VNET_CRYPTO_ALG_HMAC_SHA1,
@@ -231,6 +229,14 @@ UNITTEST_REGISTER_CRYPTO_TEST (rfc_2202_sha1_tc7_chained) = {
TEST_DATA_CHUNK (sha1_tc7_data, 40, 33)
},
};
+
+UNITTEST_REGISTER_CRYPTO_TEST (rfc_2202_sha1_tc7_inc) = {
+ .name = "HMAC-SHA-1 incremental (1024 B)",
+ .alg = VNET_CRYPTO_ALG_HMAC_SHA1,
+ .plaintext_incremental = 1024,
+ .key.length = 80,
+ .digest.length = 12,
+};
/* *INDENT-ON* */
/*