Core TPM support

Add support for performing basic TPM measurements. Right now this only
supports extending PCRs statically and only on UEFI and BIOS systems, but
will measure all modules as they're loaded.
This commit is contained in:
Matthew Garrett 2015-07-14 17:06:35 -07:00
parent 76fb8e4341
commit 858f763466
8 changed files with 678 additions and 0 deletions

13
grub-core/kern/tpm.c Normal file
View file

@ -0,0 +1,13 @@
#include <grub/err.h>
#include <grub/i18n.h>
#include <grub/misc.h>
#include <grub/mm.h>
#include <grub/tpm.h>
#include <grub/term.h>
grub_err_t
grub_tpm_measure (unsigned char *buf, grub_size_t size, grub_uint8_t pcr,
const char *description)
{
return grub_tpm_log_event(buf, size, pcr, description);
}