Skip to content
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

Implement SupportsSignatureRSAPKCS1 #234

Closed
wants to merge 6 commits into from
Closed

Implement SupportsSignatureRSAPKCS1 #234

wants to merge 6 commits into from

Conversation

qmuntal
Copy link
Collaborator

@qmuntal qmuntal commented Dec 13, 2024

We have historically used openssl.SupportsHash as a proxy to know if signing and verifying with RSA PCKS1 would support a given hash function, but openssl.SupportsHash is meant to be used to know if a given hash is supported by EVP_MD_CTX.

Some providers (such as SCOSSL) don't implement RSA PCKS1 signing using EVP_MD_CTX, they may support more (or less) hash objects in a EVP_PKEY_CTX than they do in EVP_MD_CTX. Given this discordance, we should provide a dedicated function to prove whether a given hash function is supported by RSA PCKS1.

While here, add some more supported hash functions to the cryptoHashToMD function so that RSA PCKS1 signing and verifying can potentially support the same algorithms as upstream does.

@qmuntal qmuntal closed this Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant