mirror of https://github.com/wolfSSL/wolfTPM.git
Add comment about nvIndex name.
parent
377099af09
commit
7a2a566b68
|
@ -4831,6 +4831,9 @@ TPM_RC TPM2_NV_Write(NV_Write_In* in)
|
||||||
TPM2_Packet_Init(ctx, &packet);
|
TPM2_Packet_Init(ctx, &packet);
|
||||||
|
|
||||||
TPM2_Packet_AppendU32(&packet, in->authHandle);
|
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_AppendU32(&packet, in->nvIndex);
|
||||||
TPM2_Packet_AppendAuth(&packet, ctx, &info);
|
TPM2_Packet_AppendAuth(&packet, ctx, &info);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue