vboot2: load keyblock and preamble from new-style structs

And associated unit tests.

BUG=chromium:423882
BRANCH=none
TEST=VBOOT2=1 make runtests

Change-Id: I6565d8f5da947b4874a656a61051df1a4ce415c7
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/229163
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
This commit is contained in:
Randall Spangler
2014-11-10 13:40:52 -08:00
committed by chrome-internal-fetch
parent 6ee52d9a92
commit 837b408c92
5 changed files with 638 additions and 0 deletions

View File

@@ -130,6 +130,11 @@ int vb2_select_fw_slot(struct vb2_context *ctx);
*/
int vb2_load_fw_keyblock(struct vb2_context *ctx);
/**
* (same, for new-style structs)
*/
int vb2_load_fw_keyblock2(struct vb2_context *ctx);
/**
* Verify the firmware preamble using the data subkey from the keyblock.
*
@@ -140,4 +145,9 @@ int vb2_load_fw_keyblock(struct vb2_context *ctx);
*/
int vb2_load_fw_preamble(struct vb2_context *ctx);
/**
* (same, for new-style structs)
*/
int vb2_load_fw_preamble2(struct vb2_context *ctx);
#endif /* VBOOT_REFERENCE_VBOOT_2MISC_H_ */