From f849972f65954a5ae86f381406fe77be2b09d978 Mon Sep 17 00:00:00 2001 From: Philipp Deppenwiese Date: Mon, 30 Jul 2018 01:27:47 +0200 Subject: security/vboot: Enable TCPA log extension * Implement TCPA log for tspi extend function. * Hook tcpa_log_init into vboot tpm_setup function. * Add TCPA log output for vboot GBB flags and HWID Change-Id: I22b1aa8da1a95380c39715727615ce5ce4c9443f Signed-off-by: Philipp Deppenwiese Reviewed-on: https://review.coreboot.org/27727 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/security/tpm/tspi.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/security/tpm/tspi.h') diff --git a/src/security/tpm/tspi.h b/src/security/tpm/tspi.h index 01b2984599..43254c13d1 100644 --- a/src/security/tpm/tspi.h +++ b/src/security/tpm/tspi.h @@ -35,10 +35,12 @@ int tcpa_log_add_table_entry(const char *name, const uint32_t pcr, * Ask vboot for a digest and extend a TPM PCR with it. * @param pcr sets the pcr index * @param digest sets the hash to extend into the tpm - * @param out_digest get extended hash + * @param digest_len the length of the digest + * @param name sets additional info where the digest comes from * @return TPM_SUCCESS on success. If not a tpm error is returned */ -uint32_t tpm_extend_pcr(int pcr, uint8_t *digest, uint8_t *out_digest); +uint32_t tpm_extend_pcr(int pcr, uint8_t *digest, size_t digest_len, + const char *name); /** * Issue a TPM_Clear and reenable/reactivate the TPM. -- cgit v1.2.3