Files
Eric Biggers efb621a57d lib/crypto: mldsa: Explicitly check that 'alg' is a valid value
C doesn't guarantee at the language level that an enum actually has one
of the declared values.

For robustness, make mldsa_verify() handle invalid values of 'alg'.

No effect on current callers, who always pass a valid value for 'alg'.
(Except for the KUnit test case that this commit adds.)

Fixes: 64edccea59 ("lib/crypto: Add ML-DSA verification support")
Cc: [email protected]
Reviewed-by: Ard Biesheuvel <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Eric Biggers <[email protected]>
2026-10-29 10:12:08 -07:00
..
2026-10-15 23:16:46 -07:00
2026-10-16 00:28:55 -07:00
2026-01-12 11:07:49 -08:00
2026-10-03 18:30:12 +02:00