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
This commit is contained in:
Gaurav Shah
2011-03-15 16:36:29 -07:00
parent 55db6a6717
commit b64faaa7f4
8 changed files with 190 additions and 38 deletions

View File

@@ -127,7 +127,7 @@ uint32_t TlclSetGlobalLock(void);
/* Performs a TPM_Extend.
*/
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);
/* Gets the permission bits for the NVRAM space with |index|.
*/