From: Joachim Vandersmissen Date: Fri, 18 Apr 2025 16:07:43 +0000 (-0500) Subject: Facilitate corruption in ML-DSA PCT X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89b5a9b8bcf6bfc6d210a8078c43e6f8f77c1377;p=thirdparty%2Fopenssl.git Facilitate corruption in ML-DSA PCT Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/27436) --- diff --git a/providers/implementations/keymgmt/ml_dsa_kmgmt.c b/providers/implementations/keymgmt/ml_dsa_kmgmt.c index 9105847e6dc..ee5463caec8 100644 --- a/providers/implementations/keymgmt/ml_dsa_kmgmt.c +++ b/providers/implementations/keymgmt/ml_dsa_kmgmt.c @@ -84,6 +84,8 @@ static int ml_dsa_pairwise_test(const ML_DSA_KEY *key) sig, &sig_len, sizeof(sig)) <= 0) goto err; + OSSL_SELF_TEST_oncorrupt_byte(st, sig); + if (ossl_ml_dsa_verify(key, 0, msg, sizeof(msg), NULL, 0, 0, sig, sig_len) <= 0) goto err;