summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslontis <shane.lontis@oracle.com>2023-02-17 13:00:12 +1000
committerPauli <pauli@openssl.org>2023-03-01 20:04:10 +1100
commit1735531c8ba7542e5fb2fe2f0becddb595955ace (patch)
tree1a4080cff724657cac08823561e837c503b47924
parent977950bf385a3b12a09f03444bf7a213eacbba14 (diff)
Remove ossl_rsa_pss_params_30_set_maskgenalg().
This is an unused internal function. It should be added back in if there is a need to set this value to something other than NID_mgf1 (which is not likely). Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20321)
-rw-r--r--crypto/rsa/rsa_pss.c9
-rw-r--r--include/crypto/rsa.h2
2 files changed, 0 insertions, 11 deletions
diff --git a/crypto/rsa/rsa_pss.c b/crypto/rsa/rsa_pss.c
index b59b44c421..75fdef1f8c 100644
--- a/crypto/rsa/rsa_pss.c
+++ b/crypto/rsa/rsa_pss.c
@@ -334,15 +334,6 @@ int ossl_rsa_pss_params_30_set_hashalg(RSA_PSS_PARAMS_30 *rsa_pss_params,
return 1;
}
-int ossl_rsa_pss_params_30_set_maskgenalg(RSA_PSS_PARAMS_30 *rsa_pss_params,
- int maskgenalg_nid)
-{
- if (rsa_pss_params == NULL)
- return 0;
- rsa_pss_params->mask_gen.algorithm_nid = maskgenalg_nid;
- return 1;
-}
-
int ossl_rsa_pss_params_30_set_maskgenhashalg(RSA_PSS_PARAMS_30 *rsa_pss_params,
int maskgenhashalg_nid)
{
diff --git a/include/crypto/rsa.h b/include/crypto/rsa.h
index f267e5d9d1..c9f9f84cea 100644
--- a/include/crypto/rsa.h
+++ b/include/crypto/rsa.h
@@ -34,8 +34,6 @@ int ossl_rsa_pss_params_30_copy(RSA_PSS_PARAMS_30 *to,
int ossl_rsa_pss_params_30_is_unrestricted(const RSA_PSS_PARAMS_30 *rsa_pss_params);
int ossl_rsa_pss_params_30_set_hashalg(RSA_PSS_PARAMS_30 *rsa_pss_params,
int hashalg_nid);
-int ossl_rsa_pss_params_30_set_maskgenalg(RSA_PSS_PARAMS_30 *rsa_pss_params,
- int maskgenalg_nid);
int ossl_rsa_pss_params_30_set_maskgenhashalg(RSA_PSS_PARAMS_30 *rsa_pss_params,
int maskgenhashalg_nid);
int ossl_rsa_pss_params_30_set_saltlen(RSA_PSS_PARAMS_30 *rsa_pss_params,