Re: New TPM commands.

2023-12-28 Thread Ilias Apalodimas
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(

Re: New TPM commands.

2023-12-22 Thread Ilias Apalodimas
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 : > @

Re: New TPM commands.

2023-12-21 Thread niek.nooij...@omron.com
  /* 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*/  };

Re: New TPM commands.

2023-12-20 Thread Ilias Apalodimas
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