Skip to content

Rust wrapper: fix ed25519/ed448 Keypair possibly panicking without public component - #11485

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

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

Conversation

@holtrop-wolfssl

@holtrop-wolfssl holtrop-wolfssl commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Description

Rust wrapper: fix ed25519/ed448 Keypair possibly panicking without public component

Fixes F-11271, F-11272.

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 Sep 17, 2026
Copilot AI lite review requested due to automatic review settings September 17, 2026 13:48
@holtrop-wolfssl holtrop-wolfssl changed the title Fix ed25519/ed448 Keypair possibly panicking without public component Rust wrapper: fix ed25519/ed448 Keypair possibly panicking without public component Sep 17, 2026

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.

🟡 Changes recommended

Reject public-only Ed25519 and Ed448 keys as signing keys and add regression coverage.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This PR replaces panic-prone Ed25519/Ed448 Keypair implementations with SigningKey wrappers that cache public keys.

Changes:

  • Adds SigningKey constructors and trait implementations.
  • Updates signing and incomplete-key tests.
  • Documents the breaking API change.
File summaries
File Summary
wrapper/rust/wolfssl-wolfcrypt/tests/test_ed448.rs Updates Ed448 signing-key tests.
wrapper/rust/wolfssl-wolfcrypt/tests/test_ed25519.rs Updates Ed25519 signing-key tests.
wrapper/rust/wolfssl-wolfcrypt/src/ed448.rs Adds the Ed448 signing-key wrapper; public-only keys must be rejected before caching.
wrapper/rust/wolfssl-wolfcrypt/src/ed25519.rs Adds the Ed25519 signing-key wrapper; public-only keys must be rejected before caching.
wrapper/rust/wolfssl-wolfcrypt/CHANGELOG.md Documents the API change and fix.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 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/ed25519.rs
Comment thread wrapper/rust/wolfssl-wolfcrypt/src/ed448.rs
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