We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 377099a commit 7a2a566Copy full SHA for 7a2a566
src/tpm2.c
@@ -4831,6 +4831,9 @@ TPM_RC TPM2_NV_Write(NV_Write_In* in)
4831
TPM2_Packet_Init(ctx, &packet);
4832
4833
TPM2_Packet_AppendU32(&packet, in->authHandle);
4834
+ /* When using an HMAC or Policy session make sure the NV "name" is
4835
+ * populated in the TPM2_AUTH_SESSION name.name. This is a computed
4836
+ * hash (see TPM2_HashNvPublic) */
4837
TPM2_Packet_AppendU32(&packet, in->nvIndex);
4838
TPM2_Packet_AppendAuth(&packet, ctx, &info);
4839
0 commit comments