linux/lib/crypto/tests
Eric Biggers b09bd2d92e lib/crypto: tests: Add KUnit test suite for AES-GCM
Add a KUnit test suite for the AES-GCM library API.

It consists of:

- All the shared test cases from aead-test-template.h.  These include
  extensive consistency tests, a "Monte-Carlo test", and a benchmark.

- Tests against hardcoded AES-GCM test vectors from external sources.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://patch.msgid.link/20260802233005.161467-6-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
2026-08-10 20:17:56 -07:00
..
aead-test-template.h lib/crypto: tests: Add aead-test-template.h 2026-08-10 20:17:56 -07:00
aes_cbc_macs_kunit.c lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
aes_ccm_kunit.c lib/crypto: tests: Add KUnit test suite for AES-CCM 2026-08-10 20:17:56 -07:00
aes_gcm_kunit.c lib/crypto: tests: Add KUnit test suite for AES-GCM 2026-08-10 20:17:56 -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: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07: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: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -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: Create test-utils.h 2026-08-10 20:17:56 -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: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -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 lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
Kconfig lib/crypto: tests: Add KUnit test suite for AES-GCM 2026-08-10 20:17:56 -07:00
Makefile lib/crypto: tests: Add KUnit test suite for AES-GCM 2026-08-10 20:17:56 -07:00
md5_kunit.c lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -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: Create test-utils.h 2026-08-10 20:17:56 -07: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: Create test-utils.h 2026-08-10 20:17:56 -07: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: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -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: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -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: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -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: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
sha3-testvecs.h lib/crypto: tests: Add additional SHAKE tests 2025-11-11 11:07:36 -08:00
sha224_kunit.c lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
sha224-testvecs.h
sha256_kunit.c lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
sha256-testvecs.h
sha384_kunit.c lib/crypto: tests: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -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: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -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: Use per-test-case buffers in hash tests 2026-08-10 20:17:56 -07:00
sm3-testvecs.h lib/crypto: tests: Add KUnit tests for SM3 2026-03-23 17:50:59 -07:00
test-utils.h lib/crypto: tests: Create test-utils.h 2026-08-10 20:17:56 -07:00