linux/lib/crypto/tests
Eric Biggers d2a68aba85 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>
2026-03-30 12:35:30 -07:00
..
aes_cbc_macs_kunit.c lib/crypto: tests: Add KUnit tests for CBC-based MACs 2026-03-09 13:27:20 -07:00
aes-cmac-testvecs.h lib/crypto: tests: Add KUnit tests for CBC-based MACs 2026-03-09 13:27:20 -07:00
blake2b_kunit.c lib/crypto: tests: Add KUnit tests for BLAKE2b 2025-11-11 11:07:36 -08:00
blake2b-testvecs.h lib/crypto: tests: Add KUnit tests for BLAKE2b 2025-11-11 11:07:36 -08:00
blake2s_kunit.c lib/crypto: blake2s: Rename blake2s_state to blake2s_ctx 2025-10-29 22:04:24 -07:00
blake2s-testvecs.h lib/crypto: tests: Add KUnit tests for BLAKE2s 2025-08-29 09:50:19 -07:00
chacha20poly1305_kunit.c lib/crypto: tests: Migrate ChaCha20Poly1305 self-test to KUnit 2026-03-30 12:35:30 -07:00
curve25519_kunit.c lib/crypto: tests: Add Curve25519 benchmark 2025-09-06 16:32:42 -07:00
ghash_kunit.c lib/crypto: tests: Add KUnit tests for GHASH 2026-03-23 14:56:32 -07:00
ghash-testvecs.h lib/crypto: tests: Add KUnit tests for GHASH 2026-03-23 14:56:32 -07:00
hash-test-template.h kunit, lib/crypto: Move run_irq_test() to common header 2025-08-11 11:28:00 -07:00
Kconfig lib/crypto: tests: Migrate ChaCha20Poly1305 self-test to KUnit 2026-03-30 12:35:30 -07:00
Makefile lib/crypto: tests: Migrate ChaCha20Poly1305 self-test to KUnit 2026-03-30 12:35:30 -07:00
md5_kunit.c lib/crypto: tests: Add KUnit tests for MD5 and HMAC-MD5 2025-08-27 08:15:35 -07:00
md5-testvecs.h lib/crypto: tests: Add KUnit tests for MD5 and HMAC-MD5 2025-08-27 08:15:35 -07:00
mldsa_kunit.c lib/crypto: tests: Add KUnit tests for ML-DSA verification 2026-01-12 11:07:49 -08:00
mldsa-testvecs.h lib/crypto: tests: Add KUnit tests for ML-DSA verification 2026-01-12 11:07:49 -08:00
nh_kunit.c lib/crypto: tests: Add KUnit tests for NH 2026-01-12 11:07:49 -08:00
nh-testvecs.h lib/crypto: tests: Add KUnit tests for NH 2026-01-12 11:07:49 -08:00
poly1305_kunit.c lib/crypto: tests: Add KUnit tests for Poly1305 2025-07-14 11:29:36 -07:00
poly1305-testvecs.h lib/crypto: tests: Add KUnit tests for Poly1305 2025-07-14 11:29:36 -07:00
polyval_kunit.c lib/crypto: gf128hash: Rename polyval module to gf128hash 2026-03-23 13:15:13 -07:00
polyval-testvecs.h lib/crypto: tests: Add KUnit tests for POLYVAL 2025-11-11 11:07:52 -08:00
sha1_kunit.c lib/crypto: tests: Add KUnit tests for SHA-1 and HMAC-SHA1 2025-07-14 11:29:36 -07:00
sha1-testvecs.h lib/crypto: tests: Add KUnit tests for SHA-1 and HMAC-SHA1 2025-07-14 11:29:36 -07:00
sha3_kunit.c lib/crypto: tests: Add additional SHAKE tests 2025-11-11 11:07:36 -08:00
sha3-testvecs.h lib/crypto: tests: Add additional SHAKE tests 2025-11-11 11:07:36 -08:00
sha224_kunit.c
sha224-testvecs.h
sha256_kunit.c lib/crypto: tests: Fix KMSAN warning in test_sha256_finup_2x() 2025-11-21 10:22:24 -08:00
sha256-testvecs.h
sha384_kunit.c lib/crypto: tests: Add KUnit tests for SHA-384 and SHA-512 2025-07-14 11:29:36 -07:00
sha384-testvecs.h lib/crypto: tests: Add KUnit tests for SHA-384 and SHA-512 2025-07-14 11:29:36 -07:00
sha512_kunit.c lib/crypto: tests: Add KUnit tests for SHA-384 and SHA-512 2025-07-14 11:29:36 -07:00
sha512-testvecs.h lib/crypto: tests: Add KUnit tests for SHA-384 and SHA-512 2025-07-14 11:29:36 -07:00
sm3_kunit.c lib/crypto: tests: Add KUnit tests for SM3 2026-03-23 17:50:59 -07:00
sm3-testvecs.h lib/crypto: tests: Add KUnit tests for SM3 2026-03-23 17:50:59 -07:00