Skip to content

fix: in rsa signatures, configure digest before padding mode #114261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 12, 2025

Conversation

rcatolino
Copy link
Contributor

Fixes #114260
I simply moved the EVP_PKEY_CTX_set_signature_md call before the EVP_PKEY_CTX_set_rsa_padding call, in order to prevent the openssl signature context from defaulting to SHA1 in the set_rsa_padding phase, as SHA1 is not supported in fips mode.

@rcatolino
Copy link
Contributor Author

@dotnet-policy-service agree [company="OVHCloud"]

@rcatolino
Copy link
Contributor Author

@dotnet-policy-service agree company="OVHCloud"

@bartonjs bartonjs merged commit 850b0ba into dotnet:main Apr 12, 2025
96 of 99 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Security community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

openssl error digest not allowed on RSA PSS signature in fips mode
3 participants