Commit 852480d498 for openssl.org

commit 852480d498e1186ec236c37a3451eb1233e45ba1
Author: Frederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk>
Date:   Sun Sep 13 16:44:21 2026 +0200

    Removes unused args from ossl_rsa_multiprime_derive() declaration

    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
    Merge-date: Wed Sep 16 13:45:44 2026
    Merged-from: https://github.com/openssl/openssl/pull/32814

diff --git a/crypto/rsa/rsa_backend.c b/crypto/rsa/rsa_backend.c
index 67fe3ab099..969adf4d3e 100644
--- a/crypto/rsa/rsa_backend.c
+++ b/crypto/rsa/rsa_backend.c
@@ -170,10 +170,7 @@ int ossl_rsa_fromdata_parsed(RSA *rsa, const RSA_PARAMS *p,
                  * in the multiprime case we have to generate exps/coeffs here
                  * for each additional prime
                  */
-                if (!ossl_rsa_multiprime_derive(rsa, RSA_bits(rsa),
-                        sk_BIGNUM_num(factors),
-                        rsa->e, factors, exps,
-                        coeffs)) {
+                if (!ossl_rsa_multiprime_derive(rsa, factors, exps, coeffs)) {
                     ERR_raise(ERR_LIB_RSA, ERR_R_INTERNAL_ERROR);
                     goto err;
                 }
diff --git a/crypto/rsa/rsa_gen.c b/crypto/rsa/rsa_gen.c
index 4ced7e8211..bd481f7b08 100644
--- a/crypto/rsa/rsa_gen.c
+++ b/crypto/rsa/rsa_gen.c
@@ -87,8 +87,7 @@ DEFINE_STACK_OF(BIGNUM)
  * on their respective exps and coeffs stacks
  */
 #ifndef FIPS_MODULE
-int ossl_rsa_multiprime_derive(RSA *rsa, int bits, int primes,
-    BIGNUM *e_value,
+int ossl_rsa_multiprime_derive(RSA *rsa,
     STACK_OF(BIGNUM) *factors,
     STACK_OF(BIGNUM) *exps,
     STACK_OF(BIGNUM) *coeffs)
@@ -568,8 +567,7 @@ static int rsa_multiprime_keygen(RSA *rsa, int bits, int primes,
     }

     /* derive any missing exponents and coefficients */
-    if (!ossl_rsa_multiprime_derive(rsa, bits, primes, e_value,
-            factors, exps, coeffs))
+    if (!ossl_rsa_multiprime_derive(rsa, factors, exps, coeffs))
         goto err;

     /*
diff --git a/crypto/rsa/rsa_local.h b/crypto/rsa/rsa_local.h
index 7ea7ee6541..564240f570 100644
--- a/crypto/rsa/rsa_local.h
+++ b/crypto/rsa/rsa_local.h
@@ -146,8 +146,7 @@ struct rsa_meth_st {

 /* Macro to test if a pkey is for a PSS key */
 #define pkey_is_pss(pkey) (pkey->ameth->pkey_id == EVP_PKEY_RSA_PSS)
-int ossl_rsa_multiprime_derive(RSA *rsa, int bits, int primes,
-    BIGNUM *e_value,
+int ossl_rsa_multiprime_derive(RSA *rsa,
     STACK_OF(BIGNUM) *factors, STACK_OF(BIGNUM) *exps,
     STACK_OF(BIGNUM) *coeffs);