]> git.ipfire.org Git - thirdparty/grub.git/commit
tss2: Implement grub_tcg2_cap_pcr() for EFI
authorGary Lin <glin@suse.com>
Fri, 3 Oct 2025 03:22:04 +0000 (11:22 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Sat, 11 Oct 2025 13:43:58 +0000 (15:43 +0200)
commit39f98e47196faab76f4e6691e9b244ce1b30c83f
treeae7f00ab88477e37b7d28522a2073c7dfd19d8b2
parentd47d261ecda41c0c7b774a32b75e48bccede8336
tss2: Implement grub_tcg2_cap_pcr() for EFI

This commit implements grub_tcg2_cap_pcr() for EFI by using the UEFI
TCG2 protocol, HashLogExtendEvent, to extend the specified PCR with an
EV_SEPARATOR event and ensure the event will be recorded properly in the
TPM event log.

Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Sudhakar Kuppusamy <sudhakar@linux.ibm.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/lib/efi/tcg2.c