Skip to content

wolfHSM: add DTLS client example that uses HSM as cryptographic back end - #555

Merged
padelsbach merged 3 commits into
wolfSSL:masterfrom
rizlik:dtls_wolfhsm_client_example
Jul 22, 2026
Merged

wolfHSM: add DTLS client example that uses HSM as cryptographic back end#555
padelsbach merged 3 commits into
wolfSSL:masterfrom
rizlik:dtls_wolfhsm_client_example

Conversation

@rizlik

Copy link
Copy Markdown
Contributor

No description provided.

bigbrett
bigbrett previously approved these changes Mar 18, 2026
@bigbrett

Copy link
Copy Markdown
Contributor

@rizlik sorry for delay on this. Pls resolve merge conflict

@bigbrettbigbrett assigned rizlik and unassigned bigbrettJul 2, 2026
@padelsbach

Copy link
Copy Markdown
Contributor

@rizlik, can you please resolve the conflicts?

CopilotAI review requested due to automatic review settings July 14, 2026 13:06
@rizlik
rizlikforce-pushed the dtls_wolfhsm_client_example branch from 71c3a4a to 93063e8CompareJuly 14, 2026 13:06

CopilotAI 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 introduces a new hsm/ area to the examples repository, adding a DTLS client example that demonstrates using wolfHSM as the cryptographic backend (keeping private key operations on the HSM), and wires the new area into the top-level documentation.

Changes:

  • Added a new hsm/ documentation entry and an hsm/README.md landing page for wolfHSM-related examples.
  • Added a DTLS client example (hsm/dtls_client/) including build/run tooling (Makefile) and required wolfSSL/wolfHSM configuration headers.
  • Implemented a DTLS client that offloads ECC signing to wolfHSM via PK callbacks.

Reviewed changes

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

Show a summary per file
FileDescription
README.mdAdds a new “HSM” section to the top-level directory listing.
hsm/README.mdIntroduces wolfHSM examples landing documentation and a quick-start.
hsm/dtls_client/MakefileProvides build/run automation, including cloning wolfSSL/wolfHSM and building the DTLS client + servers.
hsm/dtls_client/README.mdDocuments build/run steps and architecture for the DTLS client example.
hsm/dtls_client/user_settings.hSupplies wolfSSL user settings needed for DTLS + crypto-callback/HSM integration.
hsm/dtls_client/wolfhsm_cfg.hSets wolfHSM compile-time configuration for the DTLS client example.
hsm/dtls_client/wh_dtls_client.cImplements the DTLS client using wolfHSM for ECC signing operations.

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

Comment threadREADME.md Outdated
Comment threadhsm/dtls_client/wh_dtls_client.c
Comment threadhsm/README.md Outdated
@rizlikrizlik assigned rizlik and unassigned wolfSSL-BotJul 14, 2026
@rizlik
rizlikforce-pushed the dtls_wolfhsm_client_example branch from 93063e8 to 113482eCompareJuly 14, 2026 13:23
@rizlikrizlik assigned bigbrett and padelsbach and unassigned rizlikJul 20, 2026
bigbrett
bigbrett previously approved these changes Jul 20, 2026
@bigbrettbigbrett removed their assignment Jul 20, 2026
Comment threadhsm/dtls_client/Makefile Outdated
Comment threadhsm/dtls_client/wh_dtls_client.c
Comment threadhsm/dtls_client/wh_dtls_client.c Outdated
Comment threadhsm/dtls_client/wh_dtls_client.c Outdated
@padelsbach
padelsbach merged commit c586428 into wolfSSL:masterJul 22, 2026
Sign up for freeto 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

@rizlik@bigbrett@padelsbach@wolfSSL-Bot