mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 10:14:55 +00:00
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:
committed by
chrome-bot
parent
df2bd9b1e7
commit
f7559e4b46
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user