Skip to content

Rust wrapper: ecdsa: allow module usage for verify-only ECC builds - #11321

Open
holtrop-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
holtrop-wolfssl:f-10091
Open

Rust wrapper: ecdsa: allow module usage for verify-only ECC builds#11321
holtrop-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
holtrop-wolfssl:f-10091

Conversation

@holtrop-wolfssl

Copy link
Copy Markdown
Contributor

Description

Rust wrapper: ecdsa: allow module usage for verify-only ECC builds

Fixes F-10091

Testing

How did you test?

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@holtrop-wolfssl holtrop-wolfssl self-assigned this Aug 31, 2026
Copilot AI lite review requested due to automatic review settings August 31, 2026 14:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Rust wolfssl-wolfcrypt ECDSA signature-trait wrapper so the ecdsa module can be used in ECC verify-only wolfCrypt builds (i.e., without requiring signing/export/RNG support for the entire module).

Changes:

  • Relaxed ecdsa module-level cfg gating to only require ECC import + verify capabilities, while gating signing-key pieces more narrowly.
  • Switched curve identifiers to ECC::SECP* constants (removing the direct dependency on ecc_curve_ids enums).
  • Updated the ECDSA trait test module gating to match the APIs it actually uses (import/export/sign/verify + RNG).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
wrapper/rust/wolfssl-wolfcrypt/tests/test_ecdsa.rs Tightens/aligns test cfg gating with the ECC import/export/sign/verify + RNG APIs used by the tests.
wrapper/rust/wolfssl-wolfcrypt/src/ecdsa.rs Refactors ECDSA wrapper gating for verify-only builds; adds conditional imports/signing helpers; uses ECC::SECP* curve IDs.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread wrapper/rust/wolfssl-wolfcrypt/src/ecdsa.rs Outdated
Comment thread wrapper/rust/wolfssl-wolfcrypt/src/ecdsa.rs
@wolfSSL-Bot

Copy link
Copy Markdown

Can one of the admins verify this patch?

@holtrop-wolfssl

Copy link
Copy Markdown
Contributor Author

retest this please (Cloning the remote Git repository
ERROR: Checkout failed
java.io.StreamCorruptedException: invalid stream header: 636F7272)

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.

3 participants