mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 23:03:57 -04:00
lib/crypto: tests: Add KUnit tests for NH
Add some simple KUnit tests for the nh() function. These replace the test coverage which will be lost by removing the nhpoly1305 crypto_shash. Note that the NH code also continues to be tested indirectly as well, via the tests for the "adiantum(xchacha12,aes)" crypto_skcipher. Link: https://lore.kernel.org/r/20251211011846.8179-3-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
This commit is contained in:
@@ -47,6 +47,14 @@ config CRYPTO_LIB_MLDSA_KUNIT_TEST
|
||||
help
|
||||
KUnit tests for the ML-DSA digital signature algorithm.
|
||||
|
||||
config CRYPTO_LIB_NH_KUNIT_TEST
|
||||
tristate "KUnit tests for NH" if !KUNIT_ALL_TESTS
|
||||
depends on KUNIT
|
||||
default KUNIT_ALL_TESTS || CRYPTO_SELFTESTS
|
||||
select CRYPTO_LIB_NH
|
||||
help
|
||||
KUnit tests for the NH almost-universal hash function.
|
||||
|
||||
config CRYPTO_LIB_POLY1305_KUNIT_TEST
|
||||
tristate "KUnit tests for Poly1305" if !KUNIT_ALL_TESTS
|
||||
depends on KUNIT
|
||||
|
||||
Reference in New Issue
Block a user