Add comment about nvIndex name.

pull/344/head
David Garske 2024-04-22 14:57:31 -07:00
parent 377099af09
commit 7a2a566b68
1 changed files with 3 additions and 0 deletions

View File

@ -4831,6 +4831,9 @@ TPM_RC TPM2_NV_Write(NV_Write_In* in)
TPM2_Packet_Init(ctx, &packet);
TPM2_Packet_AppendU32(&packet, in->authHandle);
/* When using an HMAC or Policy session make sure the NV "name" is
* populated in the TPM2_AUTH_SESSION name.name. This is a computed
* hash (see TPM2_HashNvPublic) */
TPM2_Packet_AppendU32(&packet, in->nvIndex);
TPM2_Packet_AppendAuth(&packet, ctx, &info);