aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/tests.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2022-10-10 12:01:38 +0100
committerMichael Brown <mcb30@ipxe.org>2022-10-10 12:17:39 +0100
commit88419b608d71247445de287c9f8bebbf5e33e0c8 (patch)
treedd8bb32a82cfd35b7e63995f617ed37e93b230ab /src/tests/tests.c
parent081b3eefc48953795122c4b1a38430498e2bb2b6 (diff)
downloadipxe-88419b608d71247445de287c9f8bebbf5e33e0c8.tar.gz
[test] Add HMAC self-tests
The HMAC code is already tested indirectly via several consuming algorithms that themselves provide self-tests (e.g. HMAC-DRBG, NTLM authentication, and PeerDist content identification), but lacks any direct test vectors. Add explicit HMAC tests and ensure that corner cases such as empty keys, block-length keys, and over-length keys are all covered. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/tests/tests.c')
-rw-r--r--src/tests/tests.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/tests.c b/src/tests/tests.c
index 5dbbac1b1..dde1b2323 100644
--- a/src/tests/tests.c
+++ b/src/tests/tests.c
@@ -77,3 +77,4 @@ REQUIRE_OBJECT ( zlib_test );
REQUIRE_OBJECT ( gzip_test );
REQUIRE_OBJECT ( utf8_test );
REQUIRE_OBJECT ( acpi_test );
+REQUIRE_OBJECT ( hmac_test );