Re: [SeaBIOS] [PATCH 2/2] tpm: Write logs in TPM 2 format

2016-02-08 Thread Kevin O'Connor
On Mon, Feb 08, 2016 at 07:25:35AM -0500, Stefan Berger wrote: > On 02/06/2016 01:35 PM, Kevin O'Connor wrote: > >Add support for the TPM 2 format of log messages. > > > >Write the logs in the format that is appropriate for the version of > >the host's TPM. For TPM 1.2 write it in the 'pcpes' struc

Re: [SeaBIOS] [PATCH 2/2] tpm: Write logs in TPM 2 format

2016-02-08 Thread Stefan Berger
On 02/06/2016 01:35 PM, Kevin O'Connor wrote: Add support for the TPM 2 format of log messages. Write the logs in the format that is appropriate for the version of the host's TPM. For TPM 1.2 write it in the 'pcpes' structure's format, for TPM 2 in the new TPM 2 format. By using this method we

Re: [SeaBIOS] [PATCH 1/2] tpm: Unify tpm_fill_hash()/tpm_log_extend_event() and use in BIOS interface

2016-02-08 Thread Stefan Berger
On 02/06/2016 01:35 PM, Kevin O'Connor wrote: Don't call tpm_fill_hash() or tpm_log_extend_event() from any internal code (ie, tpm_add_measurement_to_log). The internal code does not require the additional checks that these functions provide. Unify the tpm_fill_hash() and tpm_log_extend_event()