Re: [PATCH 1/2] tpm: use tpm_buf functions in tpm2_pcr_read()

2017-06-29 Thread Jarkko Sakkinen
On Thu, Jun 29, 2017 at 01:18:58AM +0300, Jarkko Sakkinen wrote: > On Fri, Jun 23, 2017 at 03:41:56PM +0200, Roberto Sassu wrote: > > tpm2_pcr_read() now builds the PCR read command buffer with tpm_buf > > functions. This solution is preferred to using a tpm2_cmd structure, > > as tpm_buf

Re: [PATCH 1/2] tpm: use tpm_buf functions in tpm2_pcr_read()

2017-06-29 Thread Jarkko Sakkinen
On Thu, Jun 29, 2017 at 01:18:58AM +0300, Jarkko Sakkinen wrote: > On Fri, Jun 23, 2017 at 03:41:56PM +0200, Roberto Sassu wrote: > > tpm2_pcr_read() now builds the PCR read command buffer with tpm_buf > > functions. This solution is preferred to using a tpm2_cmd structure, > > as tpm_buf

Re: [PATCH 1/2] tpm: use tpm_buf functions in tpm2_pcr_read()

2017-06-28 Thread Jarkko Sakkinen
On Fri, Jun 23, 2017 at 03:41:56PM +0200, Roberto Sassu wrote: > tpm2_pcr_read() now builds the PCR read command buffer with tpm_buf > functions. This solution is preferred to using a tpm2_cmd structure, > as tpm_buf functions provide protection against buffer overflow. > > Signed-off-by: Roberto

Re: [PATCH 1/2] tpm: use tpm_buf functions in tpm2_pcr_read()

2017-06-28 Thread Jarkko Sakkinen
On Fri, Jun 23, 2017 at 03:41:56PM +0200, Roberto Sassu wrote: > tpm2_pcr_read() now builds the PCR read command buffer with tpm_buf > functions. This solution is preferred to using a tpm2_cmd structure, > as tpm_buf functions provide protection against buffer overflow. > > Signed-off-by: Roberto

[PATCH 1/2] tpm: use tpm_buf functions in tpm2_pcr_read()

2017-06-23 Thread Roberto Sassu
tpm2_pcr_read() now builds the PCR read command buffer with tpm_buf functions. This solution is preferred to using a tpm2_cmd structure, as tpm_buf functions provide protection against buffer overflow. Signed-off-by: Roberto Sassu --- drivers/char/tpm/tpm2-cmd.c | 60

[PATCH 1/2] tpm: use tpm_buf functions in tpm2_pcr_read()

2017-06-23 Thread Roberto Sassu
tpm2_pcr_read() now builds the PCR read command buffer with tpm_buf functions. This solution is preferred to using a tpm2_cmd structure, as tpm_buf functions provide protection against buffer overflow. Signed-off-by: Roberto Sassu --- drivers/char/tpm/tpm2-cmd.c | 60