]> Gentwo Git Trees - linux/.git/commit
lib/crypto: sha3: Add FIPS cryptographic algorithm self-test
authorEric Biggers <ebiggers@kernel.org>
Sun, 26 Oct 2025 05:50:24 +0000 (22:50 -0700)
committerEric Biggers <ebiggers@kernel.org>
Thu, 6 Nov 2025 04:02:35 +0000 (20:02 -0800)
commit6fa873641c0bdfa849130a81aa7339ccfd42b52a
treebcc319b7ebe18b5cdb91821b9a72ccf15b3587b3
parentc0db39e253ebca9dea57e8885450ff0a0a6d6155
lib/crypto: sha3: Add FIPS cryptographic algorithm self-test

Since the SHA-3 algorithms are FIPS-approved, add the boot-time
self-test which is apparently required.  This closely follows the
corresponding SHA-1, SHA-256, and SHA-512 tests.

Tested-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20251026055032.1413733-8-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
lib/crypto/fips.h
lib/crypto/sha3.c
scripts/crypto/gen-fips-testvecs.py