assword auth if platform hierarchy is disabled */
> u32 auth = priv->plat_hier_disabled ? HR_NV_INDEX + index :
> @@ -943,18 +977,21 @@ u32 tpm2_nv_write_value(struct udevice *dev, u32 index,
> const void *data,
>
> /* handles 8 bytes */
> tpm_u32(
v);
> - uint offset = 10 + 8 + 4 + 9 + 2;
> + uint offset = TPM2_HDR_LEN + 8 + 4 + 9 + 2;
> uint len = offset + count + 2;
> /* Use empty password auth if platform hierarchy is disabled */
> u32 auth = priv->plat_hier_disabled ? HR_NV_INDEX + index :
> @
/* Size of */
/* (if any) */
-
- tpm_u16(count),
+ /*end auth handle */
+ tpm_u16(count),/*size of buffer - 2 bytes*/
+ /*data (buffer)*/
+ /*offset -> the octet offset into the NV Area*/
};
Hi Niek
On Wed, 20 Dec 2023 at 09:11, niek.nooij...@omron.com
wrote:
>
> Hi There
>
> I added some new commands to the TPM2 command to allow read/writes to
> nv_memory. I also implemented the nv_define and nv_undefine commands so
> spaces can be created/deleted.
> Still need to test with PCR po
4 matches
Mail list logo