linux/scripts/crypto
Eric Biggers 2aeef50eca lib/crypto: tests: Add KUnit test suite for AES-CCM
Add a KUnit test suite for the AES-CCM 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-CCM test vectors from external sources.

- Tests for CCM-specific message length validation.

To generate the expected aes_ccm_monte_carlo_checksum[] value, add a
script gen-aead-testvecs.py which computes it using python-cryptography.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://patch.msgid.link/20260802233005.161467-5-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
2026-08-10 20:17:56 -07:00
..
gen-aead-testvecs.py lib/crypto: tests: Add KUnit test suite for AES-CCM 2026-08-10 20:17:56 -07:00
gen-fips-testvecs.py lib/crypto: aes: Add FIPS self-tests for GCM and CCM 2026-08-10 20:17:56 -07:00
gen-hash-testvecs.py lib/crypto: tests: Add KUnit tests for SM3 2026-03-23 17:50:59 -07:00