diff options
| author | Eric Biggers <ebiggers@kernel.org> | 2026-03-27 15:42:29 -0700 |
|---|---|---|
| committer | Eric Biggers <ebiggers@kernel.org> | 2026-03-30 12:35:30 -0700 |
| commit | d2a68aba8505ce88b39c34ecb3b707c776af79d4 (patch) | |
| tree | 1113906c2bf78cb0de99493fbb173c123385cc17 /lib/crypto/Makefile | |
| parent | 23e5c306a207360bfda4f8e96a229dd5fde81cbd (diff) | |
lib/crypto: tests: Migrate ChaCha20Poly1305 self-test to KUnit
Move the ChaCha20Poly1305 test from an ad-hoc self-test to a KUnit test.
Keep the same test logic for now, just translated to KUnit.
Moving to KUnit has multiple benefits, such as:
- Consistency with the rest of the lib/crypto/ tests.
- Kernel developers familiar with KUnit, which is used kernel-wide, can
quickly understand the test and how to enable and run it.
- The test will be automatically run by anyone using
lib/crypto/.kunitconfig or KUnit's all_tests.config.
- Results are reported using the standard KUnit mechanism.
- It eliminates one of the few remaining back-references to crypto/ from
lib/crypto/, specifically a reference to CONFIG_CRYPTO_SELFTESTS.
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260327224229.137532-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'lib/crypto/Makefile')
| -rw-r--r-- | lib/crypto/Makefile | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/crypto/Makefile b/lib/crypto/Makefile index 4b47a2e5c67c..477aec03c651 100644 --- a/lib/crypto/Makefile +++ b/lib/crypto/Makefile @@ -122,7 +122,6 @@ endif # CONFIG_CRYPTO_LIB_CHACHA_ARCH obj-$(CONFIG_CRYPTO_LIB_CHACHA20POLY1305) += libchacha20poly1305.o libchacha20poly1305-y += chacha20poly1305.o -libchacha20poly1305-$(CONFIG_CRYPTO_SELFTESTS) += chacha20poly1305-selftest.o ################################################################################ |
