Skip to content

Commit

Permalink
Fix the TPM2_Extend flag to support encryption.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed Dec 10, 2024
1 parent be8bbdd commit b43c61f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tpm2.c
Original file line number Diff line number Diff line change
Expand Up @@ -5051,7 +5051,7 @@ TPM_RC TPM2_NV_Extend(NV_Extend_In* in)
TPM2_Packet packet;
CmdInfo_t info = {0,0,0,0};
info.inHandleCnt = 2;
info.flags = (CMD_FLAG_DEC2 | CMD_FLAG_AUTH_USER1);
info.flags = (CMD_FLAG_ENC2 | CMD_FLAG_AUTH_USER1);

TPM2_Packet_Init(ctx, &packet);

Expand Down

0 comments on commit b43c61f

Please sign in to comment.