Skip to content

Add modifications to swtpm v0.10.x to enable usage with libtpms v0.11 - #1090

Open
stefanberger wants to merge 1 commit into
stable-0.10from
stable-0.10-libtpms-v0.11
Open

stefanberger wants to merge 1 commit into
stable-0.10from
stable-0.10-libtpms-v0.11

Conversation

@stefanberger

Copy link
Copy Markdown
Owner

This PR makes some modifications to swtpm v0.10.x to enable it to be fully usable with libtpms v0.11

  • Handle the need for a bigger buffer size for libtpms v0.11 due to PQC support (8192 byte buffer)

@stefanberger
stefanberger marked this pull request as draft March 21, 2026 15:28
@stefanberger stefanberger mentioned this pull request Mar 21, 2026
11 tasks
Check the libtpms version and if a version >= 0.11 is being used, then
use the 8kb request/response buffer size.

libtpms v0.11 introduces TPMPROP_TPM2_MAX_BUFFER. Try to not use it to
avoid introducing a (new) dependency of swtpm v0.10 on libtpms v0.11.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
@stefanberger
stefanberger force-pushed the stable-0.10-libtpms-v0.11 branch from 679f1f1 to 2ac6ba5 Compare May 1, 2026 01:51
@stefanberger
stefanberger marked this pull request as ready for review May 1, 2026 01:52
@stefanberger stefanberger changed the title WIP: Add modifications to swtpm v0.10.x to enable usage with libtpms v0.11 Add modifications to swtpm v0.10.x to enable usage with libtpms v0.11 May 1, 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.

1 participant