diff options
| author | 2026-10-28 22:45:33 -0700 | |
|---|---|---|
| committer | 2026-10-29 10:12:08 -0700 | |
| commit | efb621a57d7e4ce28e12082ba5692231858c4a3a (patch) | |
| tree | 379fdbdfd4e3c1aeb5c484215ef1a97776f5cf9c /scripts/Makefile.thinlto | |
| parent | lib/crypto: mldsa: Check pk_len before doing pointer arithmetic (diff) | |
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: 64edccea594c ("lib/crypto: Add ML-DSA verification support")
Cc: stable@vger.kernel.org
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://patch.msgid.link/20261029054534.68481-3-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
