Skip to content

lib/crypto: FIPS self-tests for AES encryption modes

Eric Biggers linux-crypto lkml 1 version Applied

Status from this message: Applied to https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=libcrypto-next

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3lib/crypto: fips: Split fips.h into fips-aes.h and fips-sha.hlib/crypto/aes.c lib/crypto/fips-aes.h lib/crypto/fips-sha.h +5 more+88 -410 replies
2/3lib/crypto: aes: Add FIPS self-tests for unauthenticated modeslib/crypto/aes.c lib/crypto/fips-aes.h scripts/crypto/gen-fips-testvecs.py+258 -50 replies
3/3lib/crypto: aes: Add FIPS self-tests for GCM and CCMlib/crypto/aes.c lib/crypto/fips-aes.h scripts/crypto/gen-fips-testvecs.py+113 -100 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchArd Biesheuvel
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] lib/crypto: FIPS self-tests for AES encryption modes

Add FIPS self-tests for all the FIPS-approved AES modes implemented in aes.c. These are needed to exercise the inverse direction of the block cipher, and to prepare for the planned integration of architecture-optimized implementations of individual modes.

Eric Biggers (3):
lib/crypto: fips: Split fips.h into fips-aes.h and fips-sha.h lib/crypto: aes: Add FIPS self-tests for unauthenticated modes lib/crypto: aes: Add FIPS self-tests for GCM and CCM

 lib/crypto/aes.c                    | 259 ++++++++++++++++++++++++++--
 lib/crypto/fips-aes.h               |  78 +++++++++
 lib/crypto/{fips.h => fips-sha.h}   |   6 +-
 lib/crypto/sha1.c                   |   2 +-
 lib/crypto/sha256.c                 |   2 +-
 lib/crypto/sha3.c                   |   2 +-
 lib/crypto/sha512.c                 |   2 +-
 scripts/crypto/gen-fips-testvecs.py | 164 ++++++++++++++----
 8 files changed, 459 insertions(+), 56 deletions(-)
 create mode 100644 lib/crypto/fips-aes.h
 rename lib/crypto/{fips.h => fips-sha.h} (90%)

base-commit: 6d22ec26295c1412d765e3d687e46224fc332928

Signature · 1 line
2.55.0