VBoot Reference: Add version checking to for preventing rollbacks.

This CL adds a new function VerifyFirmwareDriver_f() means to be a part of the RO firmware which determine which copy of the firmware to boot from. It is meant to ensure that a particular firmware is only booted if 1) it verifies successfully, 2) its version is newer or equal to current stored version. In addition, the driver function also updates the stored version if needed.

Currently I am using the TLCL API with stub calls, (in fact, most of the TPM interaction is done in rollback_index.c which implements the actual version query/update API) used by the firmware.

Review URL: http://codereview.chromium.org/1241002
14 files changed
tree: b0b5995e83d17b3328b062f37a1dd7f55376a336
  1. common/
  2. crypto/
  3. include/
  4. tests/
  5. utils/
  6. Makefile
  7. README