futility: Use vboot 2.0 APIs for public keys

This replaces calls to the old vboot 1 APIs with their vboot 2.0
equivalents.

BUG=chromium:611535
BRANCH=none
TEST=make runtests

Change-Id: Ieb1a127577c6428c47ac088c3aaa0d0dad6275a8
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/356541
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
This commit is contained in:
Randall Spangler
2016-06-23 13:45:59 -07:00
committed by chrome-bot
parent df2bd9b1e7
commit f7559e4b46
25 changed files with 297 additions and 254 deletions

View File

@@ -17,6 +17,15 @@
#define VBOOT_REFERENCE_VB2_STRUCT_H_
#include <stdint.h>
/*
* Rollback protection currently uses a 32-bit value comprised of the bottom 16
* bits of the (firmware or kernel) preamble version and the bottom 16 bits of
* the key version. So each of those versions is effectively limited to 16
* bits even though they get stored in 32-bit fields.
*/
#define VB2_MAX_KEY_VERSION 0xffff
#define VB2_MAX_PREAMBLE_VERSION 0xffff
/* Packed public key data */
struct vb2_packed_key {
/* Offset of key data from start of this struct */