Skip to content

Route the TPM client through the wolfTPM user transport - #96

Merged
dgarske merged 4 commits into
wolfSSL:mainfrom
aidangarske:tpm-user-transport
Nov 25, 2026
Merged

dgarske merged 4 commits into
wolfSSL:mainfrom
aidangarske:tpm-user-transport

Conversation

@aidangarske

@aidangarske aidangarske commented Nov 24, 2026 •

Copy link
Copy Markdown
Member
  • The TPM client reached the PSA TPM service by replacing internal wolfTPM transport functions, so it relied on wolfTPM internals and needed a matching wolfTPM build.
  • The client now builds wolfTPM with WOLFTPM_USER_TRANSPORT and passes wt_tpm_psa_io as the IO callback to wolfTPM2_Init, so each command goes over one PSA call through the public wolfTPM hook.
  • The application calls wt_tpm_psa_close after wolfTPM2_Cleanup to drop the PSA connection.
  • The interface guest and the host tpm_client test build with WOLFTPM_USER_TRANSPORT, and the guest link check now looks for wt_tpm_psa_io.
  • lib/wolfTPM and the auto-pin required commit now point at 899abf15, the wolfTPM master merge of Add an application-supplied TPM command transport wolfTPM#680.
  • docs/TPM.md describes the application setup.
  • Tested against merged wolfTPM 899abf15: all host suites pass, including tpm_client, tpm_relay and tpm_local_provider.
  • Depends on Add an application-supplied TPM command transport wolfTPM#680; lib/wolfTPM and the auto-pin minimum need bumping to the merged wolfTPM commit before this can build in CI.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #96

Scan targets checked: wolftrust-src, wolftrust-bugs
Not reviewed (no scan target covers them): docs/TPM.md, tests/firmware/interface-guest/Makefile, tests/host/tpm_client/Makefile
Coverage: 4 of 4 in-scope changed file(s) opened by the reviewer

Fenrir result: Approved ✅

No new issues found in the changed files.

Advisory only — this automated result does not count as a GitHub approval.

Review tier: Max

@aidangarske aidangarske added the ci:all Run every M33MU scenario of every port on the PR (core change) label Nov 25, 2026
@aidangarske
aidangarske marked this pull request as ready for review November 25, 2026 21:47
@dgarske dgarske self-assigned this Nov 25, 2026
@dgarske
dgarske merged commit dc2681c into wolfSSL:main Nov 25, 2026
422 of 437 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:all Run every M33MU scenario of every port on the PR (core change)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants