11 #define TPM_PCR_MAX_LEN 64
12 #define HASH_DATA_CHUNK_SIZE 1024
35 enum vb2_hash_algorithm digest_algo,
37 const size_t digest_len);
54 const uint8_t *digest,
size_t digest_len,
static struct region_device rdev
uint32_t tpm_extend_pcr(int pcr, enum vb2_hash_algorithm digest_algo, const uint8_t *digest, size_t digest_len, const char *name)
Ask vboot for a digest and extend a TPM PCR with it.
void tcpa_preram_log_clear(void)
Clears the pre-RAM tcpa log data and initializes any content with default values.
void tcpa_log_dump(void *unused)
Dump TCPA log entries on console.
struct tcpa_table * tcpa_log_init(void)
Get the pointer to the single instance of global tcpa log data, and initialize it when necessary.
uint32_t tpm_measure_region(const struct region_device *rdev, uint8_t pcr, const char *rname)
Measure a given region device and extend given PCR with the result.
void tcpa_log_add_table_entry(const char *name, const uint32_t pcr, enum vb2_hash_algorithm digest_algo, const uint8_t *digest, const size_t digest_len)
Add table entry for cbmem TCPA log.
uint32_t tpm_setup(int s3flag)
Start the TPM and establish the root of trust.
uint32_t tpm_clear_and_reenable(void)
Issue a TPM_Clear and re-enable/reactivate the TPM.