Skip to content

Async ECC#347

Open
bigbrett wants to merge 2 commits intowolfSSL:mainfrom
bigbrett:async-crypto-ecc
Open

Async ECC#347
bigbrett wants to merge 2 commits intowolfSSL:mainfrom
bigbrett:async-crypto-ecc

Conversation

@bigbrett
Copy link
Copy Markdown
Contributor

As described on the tin.

@bigbrett bigbrett self-assigned this Apr 30, 2026
Copilot AI review requested due to automatic review settings April 30, 2026 16:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an asynchronous (Request/Response) API surface for ECC operations in the wolfHSM client, and extends the test suite to exercise the new async ECC flows (sign/verify, ECDH, and server-side keygen).

Changes:

  • Expanded ECC client header documentation and introduced async Request/Response prototypes for ECC sign/verify, ECDH shared secret, and server-side keygen.
  • Implemented ECC async Request/Response paths in the client crypto implementation and refactored blocking wrappers to reuse the Response helpers (including WH_ERROR_BUFFER_SIZE behavior).
  • Added comprehensive ECC async API tests and improved crypto-callback length propagation and error mapping for buffer-size errors.

Reviewed changes

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

File Description
wolfhsm/wh_client_crypto.h Adds ECC async API declarations and extensive docblocks describing blocking + async ECC usage.
src/wh_client_crypto.c Implements ECC async Request/Response functions and refactors ECC blocking wrappers to poll the shared Response helpers.
src/wh_client_cryptocb.c Propagates output lengths on WH_ERROR_BUFFER_SIZE and maps it to wolfCrypt BUFFER_E for callback callers.
test/wh_test_crypto.c Adds ECC async API test coverage and wires it into the crypto client test run.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread wolfhsm/wh_client_crypto.h Outdated
Comment thread wolfhsm/wh_client_crypto.h Outdated
Comment thread wolfhsm/wh_client_crypto.h
Comment thread src/wh_client_crypto.c
Copy link
Copy Markdown

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #347

Scan targets checked: wolfhsm-crypto-bugs, wolfhsm-src

No new issues found in the changed files. ✅

@bigbrett bigbrett assigned AlexLanzano and rizlik and unassigned bigbrett Apr 30, 2026
@bigbrett bigbrett requested review from AlexLanzano and rizlik April 30, 2026 17:20
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.

5 participants