Re: [PATCH] lib/crypto: mldsa: Add FIPS cryptographic algorithm self-test
From: David Howells
Date: Thu Jan 08 2026 - 09:00:42 EST
Eric Biggers <ebiggers@xxxxxxxxxx> wrote:
> Since ML-DSA is FIPS-approved, add the boot-time self-test which is
> apparently required.
>
> Just add a test vector manually for now, borrowed from
> lib/crypto/tests/mldsa-testvecs.h (where in turn it's borrowed from
> leancrypto). The SHA-* FIPS test vectors are generated by
> scripts/crypto/gen-fips-testvecs.py instead, but the common Python
> libraries don't support ML-DSA yet.
>
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
Reviewed-by: David Howells <dhowells@xxxxxxxxxx>