Skip to content

Add TPM 2.0 resident server host keys for ECDSA and RSA#1033

Open
aidangarske wants to merge 2 commits into
wolfSSL:masterfrom
aidangarske:tpm-ecc-host-key
Open

Add TPM 2.0 resident server host keys for ECDSA and RSA#1033
aidangarske wants to merge 2 commits into
wolfSSL:masterfrom
aidangarske:tpm-ecc-host-key

Conversation

@aidangarske

Copy link
Copy Markdown
Member

Description

  • Lets a wolfSSH server use a host key stored in a TPM. The private key never enters RAM
  • New API wolfSSH_CTX_UseTpmHostKey(ctx, dev, key) (replaces UsePrivateKey_buffer for TPM keys)
  • KEX signature done in the TPM via wolfTPM; auto-advertises the matching host-key algorithm
  • Supports ECDSA (P-256/384/521) and RSA (rsa-sha2-256)
  • Echoserver -G option demonstrates the flow
  • CI matrix: {rsa, ecc} × {ibmswtpm2, fwtpm} simulators
  • README section added; no API breaks; clean with and without --enable-tpm

@aidangarske aidangarske marked this pull request as ready for review June 16, 2026 01:35
@aidangarske aidangarske requested a review from dgarske June 16, 2026 01:36

@dgarske dgarske left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please double check our existing wolfTPM integration support and make sure this connects with it. I really like that you added wolfTPM fTPM support in the CI

Comment thread examples/echoserver/echoserver.c Outdated
Comment thread examples/echoserver/echoserver.c Outdated
@dgarske dgarske removed their assignment Jun 16, 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