Re: [PATCH 2/3] efi_loader: Introduce eventlog support for TCG2_PROTOCOL

2020-11-29 Thread Ilias Apalodimas
On Sun, Nov 29, 2020 at 02:49:33PM +0100, Heinrich Schuchardt wrote: > On 11/29/20 2:27 PM, Ilias Apalodimas wrote: > > On Sun, Nov 29, 2020 at 07:02:39AM +0100, Heinrich Schuchardt wrote: > >> On 11/27/20 5:29 PM, Ilias Apalodimas wrote: > >>> In the previous patches we only introduced a minimal

Re: [PATCH 2/3] efi_loader: Introduce eventlog support for TCG2_PROTOCOL

2020-11-29 Thread Heinrich Schuchardt
On 11/29/20 2:27 PM, Ilias Apalodimas wrote: > On Sun, Nov 29, 2020 at 07:02:39AM +0100, Heinrich Schuchardt wrote: >> On 11/27/20 5:29 PM, Ilias Apalodimas wrote: >>> In the previous patches we only introduced a minimal subset of the >>> > [...] >>> +#define TPM2_SHA1_DIGEST_SIZE 20 >>> +#define

Re: [PATCH 2/3] efi_loader: Introduce eventlog support for TCG2_PROTOCOL

2020-11-29 Thread Ilias Apalodimas
On Sun, Nov 29, 2020 at 07:02:39AM +0100, Heinrich Schuchardt wrote: > On 11/27/20 5:29 PM, Ilias Apalodimas wrote: > > In the previous patches we only introduced a minimal subset of the > > [...] > > +#define TPM2_SHA1_DIGEST_SIZE 20 > > +#define TPM2_SHA256_DIGEST_SIZE 32 > > +#define

Re: [PATCH 2/3] efi_loader: Introduce eventlog support for TCG2_PROTOCOL

2020-11-28 Thread Heinrich Schuchardt
On 11/27/20 5:29 PM, Ilias Apalodimas wrote: In the previous patches we only introduced a minimal subset of the EFI_TCG2_PROTOCOL protocol implementing GetCapability(). So let's continue adding features to it, introducing the GetEventLog() and HashLogExtendEvent() functions. In order to do that

[PATCH 2/3] efi_loader: Introduce eventlog support for TCG2_PROTOCOL

2020-11-27 Thread Ilias Apalodimas
In the previous patches we only introduced a minimal subset of the EFI_TCG2_PROTOCOL protocol implementing GetCapability(). So let's continue adding features to it, introducing the GetEventLog() and HashLogExtendEvent() functions. In order to do that we first need to construct the eventlog in