From: Pauli Date: Wed, 13 Aug 2025 02:55:57 +0000 (+1000) Subject: rsa kem: make parameters conditional on FIPS X-Git-Tag: openssl-3.6.0-alpha1~116 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3473f699fdc4d0951e82349f56e68ec1c035be51;p=thirdparty%2Fopenssl.git rsa kem: make parameters conditional on FIPS Reviewed-by: Shane Lontis Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/28243) --- diff --git a/providers/implementations/kem/rsa_kem.c.in b/providers/implementations/kem/rsa_kem.c.in index 76d2a6c9f9c..9a0d6434c19 100644 --- a/providers/implementations/kem/rsa_kem.c.in +++ b/providers/implementations/kem/rsa_kem.c.in @@ -176,9 +176,8 @@ static int rsakem_decapsulate_init(void *vprsactx, void *vrsa, "RSA Decapsulate Init"); } - {- produce_param_decoder('rsakem_get_ctx_params', - (['KEM_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int'], + (['KEM_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'], )); -} static int rsakem_get_ctx_params(void *vprsactx, OSSL_PARAM *params) @@ -202,7 +201,7 @@ static const OSSL_PARAM *rsakem_gettable_ctx_params(ossl_unused void *vprsactx, {- produce_param_decoder('rsakem_set_ctx_params', (['KEM_PARAM_OPERATION', 'op', 'utf8_string'], - ['KEM_PARAM_FIPS_KEY_CHECK', 'ind_k', 'int'], + ['KEM_PARAM_FIPS_KEY_CHECK', 'ind_k', 'int', 'fips'], )); -} static int rsakem_set_ctx_params(void *vprsactx, const OSSL_PARAM params[])