Files
openssl/providers
Eugene Syromiatnikov 4d3d1c9f01 ml_dsa_kmgmt: check params against len and not pointers in ml_dsa_key_fromdata
The rest of the function conditions the presence/usage of pk/seed/sk
on the non-zeroness of pk_len/seed_len/sk_len, respectively, so perform
the *_len checks in a similar fashion;  that makes it in line
with the similarly written ml_kem_key_fromdata() and stops giving Coverity
ideas that the pointers can be NULL when the respective len variables
are non-zero.

Fixes: 5421423ef9 "Flexible encoders for ML-DSA"
Resolves: https://scan5.scan.coverity.com/#/project-view/65248/10222?selectedIssue=1680314
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29596)
2026-01-12 16:12:09 -05:00
..
2025-12-10 13:21:48 +11:00
2025-12-10 13:21:48 +11:00
2025-12-09 00:28:19 -07:00
2025-07-10 19:03:46 +10:00
2025-12-10 13:21:48 +11:00
2025-03-12 13:35:59 +00:00
2025-09-02 13:07:15 +00:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00