efi/libstub: add prototype of efi_tcg2_protocol::hash_log_extend_event()
authorArd Biesheuvel <ardb@kernel.org>
Fri, 19 Nov 2021 11:47:42 +0000 (13:47 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 21 Nov 2021 16:08:10 +0000 (17:08 +0100)
commit4da87c51705815fe1fbd41cc61640bb80da5bc54
tree3ab334395851c4f23ab32ef72842184d6ad91968
parentf65b8132092699e4f672111836f3f51c00c354f2
efi/libstub: add prototype of efi_tcg2_protocol::hash_log_extend_event()

Define the right prototype for efi_tcg2_protocol::hash_log_extend_event()
and add the required structs so we can start using it to measure the initrd
into the TPM if it was loaded by the EFI stub itself.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Link: https://lore.kernel.org/r/20211119114745.1560453-2-ilias.apalodimas@linaro.org
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/include/asm/efi.h
drivers/firmware/efi/libstub/efistub.h