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

allow null params in AlgorithmIdentifiers with SHA hash function OIDs #8974

Merged
merged 1 commit into from
May 27, 2023

Conversation

reaperhulk
Copy link
Member

RFC 4055 section 2.1 states "All implementations MUST accept both NULL and absent parameters as legal and equivalent encodings".

It also makes some somewhat conflicting statements after that, but LibreSSL omits the null params for PSS, and OpenSSL parses this without issue so tolerance it is.

fixes #8907

RFC 4055 section 2.1 states "All implementations MUST accept both
NULL and absent parameters as legal and equivalent encodings".

It also makes some somewhat conflicting statements after that, but
LibreSSL omits the null params for PSS, and OpenSSL parses this
without issue so tolerance it is.
@alex alex merged commit 93c96b7 into pyca:main May 27, 2023
56 checks passed
@reaperhulk reaperhulk deleted the null-algparams branch May 28, 2023 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

AlgorithmIdentifier null parameters
2 participants