]> git.ipfire.org Git - thirdparty/linux.git/commit
lib/crypto: aes: Add FIPS self-test for CMAC
authorEric Biggers <ebiggers@kernel.org>
Wed, 18 Feb 2026 21:34:53 +0000 (13:34 -0800)
committerEric Biggers <ebiggers@kernel.org>
Mon, 9 Mar 2026 20:27:20 +0000 (13:27 -0700)
commit2505f9157ebf2bbdb7b1c0ff1cb7274e651ab028
tree76e2b18a0f4bcbe24dd774991de614468db5f51b
parenta348fd1f6eee5b8f5bf159c9d95d35cc54d17699
lib/crypto: aes: Add FIPS self-test for CMAC

Add a FIPS cryptographic algorithm self-test for AES-CMAC to fulfill the
self-test requirement when this code is built into a FIPS 140
cryptographic module.  This provides parity with the traditional crypto
API, which uses crypto/testmgr.c to meet the FIPS self-test requirement.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260218213501.136844-8-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crypto/aes.c
lib/crypto/fips.h
scripts/crypto/gen-fips-testvecs.py