Skip to content

always set continueSession in password auth response for fwtpm - #530

Merged
dgarske merged 1 commit into
wolfSSL:masterfrom
aidangarske:fwtpm-pwap-continuesession
Jun 16, 2026
Merged

always set continueSession in password auth response for fwtpm#530
dgarske merged 1 commit into
wolfSSL:masterfrom
aidangarske:fwtpm-pwap-continuesession

Conversation

@aidangarske

Copy link
Copy Markdown
Member

Description

Fixes #529

Copilot AI 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.

Pull request overview

This PR addresses TPM 2.0 password-authorization response semantics in the fwTPM implementation (Fixes #529) by ensuring the response sessionAttributes indicates continueSession for TPM_RS_PW (password) authorizations, matching TPM 2.0 Part 1 §16.4 expectations and improving interoperability with clients like go-tpm.

Changes:

  • Force-set TPMA_SESSION_continueSession in the response auth area when the command uses a password authorization (TPM_RS_PW).
  • Add a fwTPM unit test that issues a PCR_Extend with a password auth session whose command attributes byte is 0x00, and asserts the response has continueSession set.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/fwtpm/fwtpm_command.c Adjusts password-session response auth-area attribute handling to set continueSession.
tests/fwtpm_unit_tests.c Adds a regression test validating continueSession is set in password-session responses.

Comment thread src/fwtpm/fwtpm_command.c
@dgarske
dgarske merged commit 4f9383c into wolfSSL:master Jun 16, 2026
161 checks passed
@aidangarske
aidangarske deleted the fwtpm-pwap-continuesession branch June 16, 2026 21:38
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.

Session attribute for password session to return ContinueSession

3 participants