RE: [PATCH v3] tpm-dev-common: Reject too short writes

2017-09-11 Thread Alexander.Steffen
> On Sat, Sep 09, 2017 at 12:37:39AM +0300, Jarkko Sakkinen wrote: > > On Fri, Sep 08, 2017 at 05:21:32PM +0200, Alexander Steffen wrote: > > > tpm_transmit() does not offer an explicit interface to indicate the > number > > > of valid bytes in the communication buffer. Instead, it relies on the >

Re: [PATCH v3] tpm-dev-common: Reject too short writes

2017-09-09 Thread Jarkko Sakkinen
On Sat, Sep 09, 2017 at 12:37:39AM +0300, Jarkko Sakkinen wrote: > On Fri, Sep 08, 2017 at 05:21:32PM +0200, Alexander Steffen wrote: > > tpm_transmit() does not offer an explicit interface to indicate the number > > of valid bytes in the communication buffer. Instead, it relies on the > > commandS

Re: [PATCH v3] tpm-dev-common: Reject too short writes

2017-09-08 Thread Jarkko Sakkinen
On Fri, Sep 08, 2017 at 05:21:32PM +0200, Alexander Steffen wrote: > tpm_transmit() does not offer an explicit interface to indicate the number > of valid bytes in the communication buffer. Instead, it relies on the > commandSize field in the TPM header that is encoded within the buffer. > Therefor