]> Gentwo Git Trees - linux/.git/commit
lib/crypto: tests: Add KUnit tests for MD5 and HMAC-MD5
authorEric Biggers <ebiggers@kernel.org>
Tue, 5 Aug 2025 22:28:55 +0000 (15:28 -0700)
committerEric Biggers <ebiggers@kernel.org>
Wed, 27 Aug 2025 15:15:35 +0000 (08:15 -0700)
commitd6b6aac0cdb4b4f81cccc531ed76211d56c17444
tree863230c1d8a878c1b11b980faf97bb861214a0f6
parentba8ee22a7f924ba10571b31f8a2e5aa1cf479308
lib/crypto: tests: Add KUnit tests for MD5 and HMAC-MD5

Add a KUnit test suite for the MD5 library functions, including the
corresponding HMAC support.  The core test logic is in the
previously-added hash-test-template.h.  This commit just adds the actual
KUnit suite, and it adds the generated test vectors to the tree so that
gen-hash-testvecs.py won't have to be run at build time.

Link: https://lore.kernel.org/r/20250805222855.10362-8-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crypto/tests/Kconfig
lib/crypto/tests/Makefile
lib/crypto/tests/md5-testvecs.h [new file with mode: 0644]
lib/crypto/tests/md5_kunit.c [new file with mode: 0644]