diff options
author | Gaurav Shah <gauravsh@chromium.org> | 2011-03-15 16:36:29 -0700 |
---|---|---|
committer | Gaurav Shah <gauravsh@chromium.org> | 2011-03-15 16:36:29 -0700 |
commit | b64faaa7f4167344765eb32baebb0aa01a03bc29 (patch) | |
tree | 22831f297ab859e0a4c31500fb0685f6933cf74b /firmware/lib/tpm_lite/tlcl.c | |
parent | 55db6a67176a4933427d2ee556180f6e814f60d9 (diff) | |
download | vboot-b64faaa7f4167344765eb32baebb0aa01a03bc29.tar.gz |
Update PCR state with the state of the firmware keyblock flags too.
I re-factored the extend call into its own module, since it doesn't necessarily
need to be couple with rollbackfirmwaresetup.
BUG=chrome-os-partner:2372
TEST=Tried emerge-x86-generic and emerge-arm-generic vboot_reference.
Change-Id: I0d3115b10b686133e63e304570325ebdbd50ae3a
Review URL: http://codereview.chromium.org/6696006
Diffstat (limited to 'firmware/lib/tpm_lite/tlcl.c')
-rw-r--r-- | firmware/lib/tpm_lite/tlcl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/lib/tpm_lite/tlcl.c b/firmware/lib/tpm_lite/tlcl.c index 12742d8e..a3af5b5a 100644 --- a/firmware/lib/tpm_lite/tlcl.c +++ b/firmware/lib/tpm_lite/tlcl.c @@ -291,7 +291,8 @@ uint32_t TlclSetGlobalLock(void) { return TlclWrite(TPM_NV_INDEX0, (uint8_t*) &x, 0); } -uint32_t TlclExtend(int pcr_num, uint8_t* in_digest, uint8_t* out_digest) { +uint32_t TlclExtend(int pcr_num, const uint8_t* in_digest, + uint8_t* out_digest) { struct s_tpm_extend_cmd cmd; uint8_t response[kTpmResponseHeaderLength + kPcrDigestLength]; uint32_t result; |