Skip to content

Update RustCrypto curves and require patched crypto-bigint - #551

Closed
jh247247 wants to merge 1 commit into
Keats:masterfrom
jh247247:fix/rustcrypto-patched-curves
Closed

jh247247 wants to merge 1 commit into
Keats:masterfrom
jh247247:fix/rustcrypto-patched-curves

Conversation

@jh247247

Copy link
Copy Markdown

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_crypto passed 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 lib passed.
  • cargo run --features rust_crypto --example validation encoded and decoded synthetic claims successfully.
  • cargo fmt --all completed.
  • Independent source/crypto compatibility review completed, including P-256/P-384 high-S acceptance and fixed-width JWS representation.

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.

@jh247247

Copy link
Copy Markdown
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.

@arckoor arckoor closed this Nov 6, 2026
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.

2 participants