Linux cryptographic layer development
 help / color / mirror / Atom feed
* [PATCH 0/7] lib/crypto: KUnit tests for unauthenticated AES modes
@ 2026-11-16  6:28 Eric Biggers
  2026-11-16  6:28 ` [PATCH 1/7] lib/crypto: tests: Add skcipher-test-template.h and gen-skcipher-testvecs.py Eric Biggers
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Eric Biggers @ 2026-11-16  6:28 UTC (permalink / raw)
  To: linux-crypto
  Cc: Ard Biesheuvel, Jason A . Donenfeld, Herbert Xu, Eric Biggers

This series applies to libcrypto-next.  It can also be retrieved from:

    git fetch https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git aes-kunit-v1

This series adds comprehensive KUnit test suites for the remaining AES
modes that got new library APIs in v7.3: AES-ECB, AES-CBC, AES-CBC-CTS,
AES-CTR, AES-XCTR, and AES-XTS.

Most of the test code is placed in a common header file, like it is in
many of the existing tests.

Eric Biggers (7):
  lib/crypto: tests: Add skcipher-test-template.h and
    gen-skcipher-testvecs.py
  lib/crypto: tests: Add KUnit test suite for AES-ECB
  lib/crypto: tests: Add KUnit test suite for AES-CBC
  lib/crypto: tests: Add KUnit test suite for AES-CBC-CTS
  lib/crypto: tests: Add KUnit test suite for AES-CTR
  lib/crypto: tests: Add KUnit test suite for AES-XCTR
  lib/crypto: tests: Add KUnit test suite for AES-XTS

 lib/crypto/.kunitconfig                   |    4 +
 lib/crypto/tests/Kconfig                  |   36 +
 lib/crypto/tests/Makefile                 |    4 +
 lib/crypto/tests/aead-test-template.h     |   67 +-
 lib/crypto/tests/aes_cbc_cts_kunit.c      |  239 ++++
 lib/crypto/tests/aes_cbc_kunit.c          |  137 +++
 lib/crypto/tests/aes_ctr_kunit.c          |  196 ++++
 lib/crypto/tests/aes_ecb_kunit.c          |  227 ++++
 lib/crypto/tests/aes_xctr_kunit.c         |  149 +++
 lib/crypto/tests/aes_xts_kunit.c          |  365 ++++++
 lib/crypto/tests/skcipher-test-template.h | 1241 +++++++++++++++++++++
 lib/crypto/tests/sp800-38a-data.h         |   36 +
 lib/crypto/tests/test-utils.h             |   25 +
 scripts/crypto/gen-skcipher-testvecs.py   |  167 +++
 14 files changed, 2846 insertions(+), 47 deletions(-)
 create mode 100644 lib/crypto/tests/aes_cbc_cts_kunit.c
 create mode 100644 lib/crypto/tests/aes_cbc_kunit.c
 create mode 100644 lib/crypto/tests/aes_ctr_kunit.c
 create mode 100644 lib/crypto/tests/aes_ecb_kunit.c
 create mode 100644 lib/crypto/tests/aes_xctr_kunit.c
 create mode 100644 lib/crypto/tests/aes_xts_kunit.c
 create mode 100644 lib/crypto/tests/skcipher-test-template.h
 create mode 100644 lib/crypto/tests/sp800-38a-data.h
 create mode 100755 scripts/crypto/gen-skcipher-testvecs.py


base-commit: 84abb955b1015477aa11a96e2f3ac1b938b77f48
-- 
2.56.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-11-16  6:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-16  6:28 [PATCH 0/7] lib/crypto: KUnit tests for unauthenticated AES modes Eric Biggers
2026-11-16  6:28 ` [PATCH 1/7] lib/crypto: tests: Add skcipher-test-template.h and gen-skcipher-testvecs.py Eric Biggers
2026-11-16  6:28 ` [PATCH 2/7] lib/crypto: tests: Add KUnit test suite for AES-ECB Eric Biggers
2026-11-16  6:28 ` [PATCH 3/7] lib/crypto: tests: Add KUnit test suite for AES-CBC Eric Biggers
2026-11-16  6:28 ` [PATCH 4/7] lib/crypto: tests: Add KUnit test suite for AES-CBC-CTS Eric Biggers
2026-11-16  6:28 ` [PATCH 5/7] lib/crypto: tests: Add KUnit test suite for AES-CTR Eric Biggers
2026-11-16  6:28 ` [PATCH 6/7] lib/crypto: tests: Add KUnit test suite for AES-XCTR Eric Biggers
2026-11-16  6:28 ` [PATCH 7/7] lib/crypto: tests: Add KUnit test suite for AES-XTS Eric Biggers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox