Skip to content

tpmlib: Introduce TPMPROP_TPM2_BUFFER_MAX and set it to 4096 for now#583

Merged
stefanberger merged 1 commit into
masterfrom
master.next
May 7, 2026
Merged

tpmlib: Introduce TPMPROP_TPM2_BUFFER_MAX and set it to 4096 for now#583
stefanberger merged 1 commit into
masterfrom
master.next

Conversation

@stefanberger
Copy link
Copy Markdown
Owner

In preparation for PQC support, introduce TPMPROP_TPM2_BUFFER_MAX for an API user (e.g., swtpm) to be able to get the size of the TPM 2 request and response buffer. Set the new TPM2_BUFFER_MAX to 4096 for now, which is the same value as TPM_BUFFER_MAX. In the TPM 2 related code replace TPM_BUFFER_MAX with TPM2_BUFFER_MAX.

In preparation for PQC support, introduce TPMPROP_TPM2_BUFFER_MAX for an
API user (e.g., swtpm) to be able to get the size of the TPM 2 request
and response buffer. Set the new TPM2_BUFFER_MAX to 4096 for now, which is
the same value as TPM_BUFFER_MAX. In the TPM 2 related code replace
TPM_BUFFER_MAX with TPM2_BUFFER_MAX.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
@stefanberger stefanberger merged commit 521c510 into master May 7, 2026
4 checks passed
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.

1 participant