All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Biggers <ebiggers@kernel.org>
To: linux-crypto@vger.kernel.org
Cc: Ard Biesheuvel <ardb@kernel.org>,
	"Jason A . Donenfeld" <Jason@zx2c4.com>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	Eric Biggers <ebiggers@kernel.org>
Subject: [PATCH 0/7] lib/crypto: KUnit tests for unauthenticated AES modes
Date: Sun, 15 Nov 2026 22:28:42 -0800	[thread overview]
Message-ID: <20261116062849.1071038-1-ebiggers@kernel.org> (raw)

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


             reply	other threads:[~2026-11-16  6:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-16  6:28 Eric Biggers [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261116062849.1071038-1-ebiggers@kernel.org \
    --to=ebiggers@kernel.org \
    --cc=Jason@zx2c4.com \
    --cc=ardb@kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.