coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
tpm_common.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #if CONFIG(TPM)
4 
5 /* Start of the root of trust */
6 uint32_t vboot_setup_tpm(struct vb2_context *ctx);
7 
8 /* vboot_extend_pcr function for vb2 context */
9 vb2_error_t vboot_extend_pcr(struct vb2_context *ctx, int pcr,
10  enum vb2_pcr_digest which_digest);
11 
12 #else
13 
14 #define vboot_setup_tpm(ctx) 0
15 
16 #define vboot_extend_pcr(ctx, pcr, which_digest) 0
17 
18 #endif
unsigned int uint32_t
Definition: stdint.h:14
#define vboot_extend_pcr(ctx, pcr, which_digest)
Definition: tpm_common.h:16
#define vboot_setup_tpm(ctx)
Definition: tpm_common.h:14