Skip to content

fix(crypto): check SPKI parameters and scheme compatibility - #207

Open
wolfv wants to merge 1 commit into
pre1/release-docsfrom
pre1/algorithm-contracts
Open

fix(crypto): check SPKI parameters and scheme compatibility#207
wolfv wants to merge 1 commit into
pre1/release-docsfrom
pre1/algorithm-contracts

Conversation

@wolfv

@wolfv wolfv commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

Small follow-up to #206; only two crypto source files change.

Use one checked SPKI algorithm resolver for automatic and explicit-scheme verification-key construction. Reject mismatched curves/algorithms, invalid parameters and non-octet-aligned BIT STRINGs; parse bare RSA keys instead of blindly falling back on every SPKI error. Autodetection now handles P-384, RSA and ML-DSA OIDs alongside P-256/Ed25519.

Validation: workspace all-feature tests and strict Clippy passed. Tests cover P-384 signing/verification, RSA SPKI and PKCS#1 parsing, algorithm substitution and invalid parameters.

Signed-off-by: Wolf Vollprecht <w.vollprecht@gmail.com>
@wolfv
wolfv force-pushed the pre1/algorithm-contracts branch from f1c125b to 79161d5 Compare September 5, 2026 11:22
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