Skip to content

commands: implement TPM2_PCR_Allocate intpm2 - #442

Open
bschaatsbergen wants to merge 1 commit into
google:mainfrom
bschaatsbergen:pcr-allocate
Open

commands: implement TPM2_PCR_Allocate intpm2#442
bschaatsbergen wants to merge 1 commit into
google:mainfrom
bschaatsbergen:pcr-allocate

Conversation

@bschaatsbergen

Copy link
Copy Markdown

Closes #393. This implements TPM2_PCR_Allocate intpm2 (Part 3, Commands, section 22.5).

#394 added PCRAllocate to legacy/tpm2; this brings the command to the tpm2 package, where it is still missing. Part of #278.

The section 22.5.1 behaviour is documented on the types: the request applies at the next _TPM_Init rather than immediately, only the banks listed are changed, TPM2_Shutdown is restricted to TPM_SU_CLEAR until then, and the TPM may return TPM_RC_SUCCESS even when the request failed.

Closes google#394. This implements TPM2_PCR_Allocate  in`tpm2` (Part 3, Commands, section 22.5).
@bschaatsbergen
bschaatsbergen requested review from a team, alexmwu and jkl73 as code owners July 22, 2026 16:39
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.

Support TPM2_PCR_Allocate command

1 participant