coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
tpm_common.c File Reference
#include <security/tpm/tspi.h>
#include <vb2_api.h>
#include <security/vboot/tpm_common.h>
Include dependency graph for tpm_common.c:

Go to the source code of this file.

Macros

#define TPM_PCR_BOOT_MODE   "VBOOT: boot mode"
 
#define TPM_PCR_GBB_HWID_NAME   "VBOOT: GBB HWID"
 

Functions

uint32_t vboot_setup_tpm (struct vb2_context *ctx)
 
vb2_error_t vboot_extend_pcr (struct vb2_context *ctx, int pcr, enum vb2_pcr_digest which_digest)
 

Macro Definition Documentation

◆ TPM_PCR_BOOT_MODE

#define TPM_PCR_BOOT_MODE   "VBOOT: boot mode"

Definition at line 7 of file tpm_common.c.

◆ TPM_PCR_GBB_HWID_NAME

#define TPM_PCR_GBB_HWID_NAME   "VBOOT: GBB HWID"

Definition at line 8 of file tpm_common.c.

Function Documentation

◆ vboot_extend_pcr()

vb2_error_t vboot_extend_pcr ( struct vb2_context *  ctx,
int  pcr,
enum vb2_pcr_digest  which_digest 
)

Definition at line 21 of file tpm_common.c.

References _Static_assert(), buffer, CONFIG, tpm_extend_pcr(), TPM_PCR_BOOT_MODE, TPM_PCR_GBB_HWID_NAME, and TPM_PCR_MINIMUM_DIGEST_SIZE.

Referenced by extend_pcrs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vboot_setup_tpm()

uint32_t vboot_setup_tpm ( struct vb2_context *  ctx)

Definition at line 10 of file tpm_common.c.

References TPM_E_MUST_REBOOT, and tpm_setup().

Referenced by verstage_main().

Here is the call graph for this function:
Here is the caller graph for this function: