Skip to content

Improve validation of algorithm identifiers in keys and signatures#5689

Draft
randombit wants to merge 1 commit into
masterfrom
jack/alg-id-validation
Draft

Improve validation of algorithm identifiers in keys and signatures#5689
randombit wants to merge 1 commit into
masterfrom
jack/alg-id-validation

Conversation

@randombit

Copy link
Copy Markdown
Owner

Some key types would for example completely ignore the OIDs in passed algorithm identifiers, on the assumption they were being called from one of the decoder factory functions. Likewise in some contexts where the algorithm identifier parameters are unused, any junk in there would be silently ignored.

Also there were some cases where either NULL or absent parameters was accepted, even though the relevant standard specifically requires one or the other.

Some key types would for example completely ignore the OIDs in passed algorithm
identifiers, on the assumption they were being called from one of the decoder
factory functions. Likewise in some contexts where the algorithm identifier
parameters are unused, any junk in there would be silently ignored.

Also there were some cases where either NULL or absent parameters was accepted,
even though the relevant standard specifically requires one or the other.
@randombit
randombit marked this pull request as draft June 24, 2026 10:17
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