mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 23:03:57 -04:00
lib/crypto: tests: Add KUnit tests for POLYVAL
Add a test suite for the POLYVAL library, including: - All the standard tests and the benchmark from hash-test-template.h - Comparison with a test vector from the RFC - Test with key and message containing all one bits - Additional tests related to the key struct Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20251109234726.638437-4-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
This commit is contained in:
@@ -47,6 +47,15 @@ config CRYPTO_LIB_POLY1305_KUNIT_TEST
|
||||
help
|
||||
KUnit tests for the Poly1305 library functions.
|
||||
|
||||
config CRYPTO_LIB_POLYVAL_KUNIT_TEST
|
||||
tristate "KUnit tests for POLYVAL" if !KUNIT_ALL_TESTS
|
||||
depends on KUNIT
|
||||
default KUNIT_ALL_TESTS || CRYPTO_SELFTESTS
|
||||
select CRYPTO_LIB_BENCHMARK_VISIBLE
|
||||
select CRYPTO_LIB_POLYVAL
|
||||
help
|
||||
KUnit tests for the POLYVAL library functions.
|
||||
|
||||
config CRYPTO_LIB_SHA1_KUNIT_TEST
|
||||
tristate "KUnit tests for SHA-1" if !KUNIT_ALL_TESTS
|
||||
depends on KUNIT
|
||||
|
||||
Reference in New Issue
Block a user