|
|
|
@ -35,6 +35,9 @@ EVP_PKEY_CTX_get_params() with the
|
|
|
|
|
OSSL_SIGNATURE_PARAM_REDHAT_FIPS_INDICATOR
|
|
|
|
|
parameter.
|
|
|
|
|
|
|
|
|
|
We also add indicator for RSA_NO_PADDING here to avoid patch-over-patch.
|
|
|
|
|
Dmitry Belyavskiy <dbelyavs@redhat.com>
|
|
|
|
|
|
|
|
|
|
Signed-off-by: Clemens Lang <cllang@redhat.com>
|
|
|
|
|
---
|
|
|
|
|
include/openssl/core_names.h | 1 +
|
|
|
|
@ -73,7 +76,7 @@ diff --git a/providers/implementations/signature/rsa_sig.c b/providers/implement
|
|
|
|
|
index 49e7f9158a..0c45008a00 100644
|
|
|
|
|
--- a/providers/implementations/signature/rsa_sig.c
|
|
|
|
|
+++ b/providers/implementations/signature/rsa_sig.c
|
|
|
|
|
@@ -1127,6 +1127,21 @@ static int rsa_get_ctx_params(void *vprsactx, OSSL_PARAM *params)
|
|
|
|
|
@@ -1127,6 +1127,24 @@ static int rsa_get_ctx_params(void *vprsactx, OSSL_PARAM *params)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -87,6 +90,9 @@ index 49e7f9158a..0c45008a00 100644
|
|
|
|
|
+ } else if (rsa_pss_compute_saltlen(prsactx) > EVP_MD_get_size(prsactx->md)) {
|
|
|
|
|
+ fips_indicator = EVP_SIGNATURE_REDHAT_FIPS_INDICATOR_NOT_APPROVED;
|
|
|
|
|
+ }
|
|
|
|
|
+ } else if (prsactx->pad_mode == RSA_NO_PADDING) {
|
|
|
|
|
+ if (prsactx->md == NULL) /* Should always be the case */
|
|
|
|
|
+ fips_indicator = EVP_SIGNATURE_REDHAT_FIPS_INDICATOR_NOT_APPROVED;
|
|
|
|
|
+ }
|
|
|
|
|
+ return OSSL_PARAM_set_int(p, fips_indicator);
|
|
|
|
|
+ }
|
|
|
|
|