Commit 25a7beec2b for openssl.org

commit 25a7beec2bd3a8a63b1c03c79de603b139aaf4ed
Author: Pauli <paul.dale@oracle.com>
Date:   Wed Aug 26 13:06:55 2026 +1000

    crypto: remove unused multiprime parameter helper

    Assisted-by: ChatGPT:gpt-5.6Sol

    Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
    Reviewed-by: Mounir Idrassi <mounir.idrassi@idrix.fr>
    (Merged from https://github.com/openssl/openssl/pull/32502)

diff --git a/crypto/param_build_set.c b/crypto/param_build_set.c
index 51a2678350..dc9bcc9c8a 100644
--- a/crypto/param_build_set.c
+++ b/crypto/param_build_set.c
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020-2022 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2020-2026 The OpenSSL Project Authors. All Rights Reserved.
  *
  * Licensed under the Apache License 2.0 (the "License").  You may not use
  * this file except in compliance with the License.  You can obtain a copy
@@ -99,31 +99,3 @@ int ossl_param_build_set_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
         return OSSL_PARAM_set_BN(p, bn) > 0;
     return 1;
 }
-
-int ossl_param_build_set_multi_key_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *params,
-    const char *names[],
-    STACK_OF(BIGNUM_const) *stk)
-{
-    int i, sz = sk_BIGNUM_const_num(stk);
-    OSSL_PARAM *p;
-    const BIGNUM *bn;
-
-    if (bld != NULL) {
-        for (i = 0; i < sz && names[i] != NULL; ++i) {
-            bn = sk_BIGNUM_const_value(stk, i);
-            if (bn != NULL && !OSSL_PARAM_BLD_push_BN(bld, names[i], bn))
-                return 0;
-        }
-        return 1;
-    }
-
-    for (i = 0; i < sz && names[i] != NULL; ++i) {
-        bn = sk_BIGNUM_const_value(stk, i);
-        p = OSSL_PARAM_locate(params, names[i]);
-        if (p != NULL && bn != NULL) {
-            if (!OSSL_PARAM_set_BN(p, bn))
-                return 0;
-        }
-    }
-    return 1;
-}
diff --git a/include/internal/param_build_set.h b/include/internal/param_build_set.h
index c7785a12e6..a01cf2d1c9 100644
--- a/include/internal/param_build_set.h
+++ b/include/internal/param_build_set.h
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020-2022 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2020-2026 The OpenSSL Project Authors. All Rights Reserved.
  *
  * Licensed under the Apache License 2.0 (the "License").  You may not use
  * this file except in compliance with the License.  You can obtain a copy
@@ -44,8 +44,4 @@ int ossl_param_build_set_signed_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
 int ossl_param_build_set_signed_bn_pad(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
     const char *key, const BIGNUM *bn,
     size_t sz);
-int ossl_param_build_set_multi_key_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
-    const char *names[],
-    STACK_OF(BIGNUM_const) *stk);
-
 #endif /* OSSL_INTERNAL_PARAM_BUILD_SET_H */