Repository navigation
Conversation
Author
|
Apologies for having this PR slopped into existence - my personal project was failing the security audit and I told it to "raise a PR to fix the issue" and this is the result of that. Feel free to ignore, but I see that there is prior work with a more robust solution in #536 which seems more appropriate than this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Upgrade optional RustCrypto P-256/P-384 dependencies to 0.14 and require patched crypto-bigint >=0.7.6 for RUSTSEC-2026-0387. Preserve the existing provider-facing signature v2 traits while using the curve backend's v3 traits and fixed-width signature types internally. Preserve JWT signature bytes, parsing/error contracts, supported algorithms, PEM/DER/JWK handling and Ed25519's distinct PKCS#8 trait version.
No audit exclusions, custom arithmetic, backend substitution or removed algorithms.
Verification
cargo test --features rust_cryptopassed the existing native suites.cargo test --no-default-features --features rust_crypto --test lib ecdsa::passed.cargo test --no-default-features --features aws_lc_rs --test libpassed.cargo run --features rust_crypto --example validationencoded and decoded synthetic claims successfully.cargo fmt --allcompleted.The bigint lower bound prevents an existing resolver lock from retaining elliptic-curve's older allowed 0.7.5 dependency. No crates.io release or downstream production deployment claimed.