vboot2: Split crypto algorithms into their own header file

This allows the algorithm list to be shared by code which simply needs
to look at the vboot structures.

No functional changes; just moving enums around and adding comments.

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

Change-Id: Ia8cefeffb28d5eceb290540195193ea13e68e2c1
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/223541
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
This commit is contained in:
Randall Spangler
2014-10-15 13:41:52 -07:00
committed by chrome-internal-fetch
parent 3638625d35
commit f2f88042ed
4 changed files with 46 additions and 28 deletions

View File

@@ -27,7 +27,7 @@ struct vb2_packed_key {
uint32_t key_size;
uint32_t reserved1;
/* Signature algorithm used by the key */
/* Signature algorithm used by the key (enum vb2_crypto_algorithm) */
uint32_t algorithm;
uint32_t reserved2;
@@ -231,7 +231,10 @@ struct vb2_shared_data {
/* Flags from GBB header */
uint32_t gbb_flags;
/* Reason we are in recovery mode this boot, or 0 if we aren't */
/*
* Reason we are in recovery mode this boot (enum vb2_nv_recovery), or
* 0 if we aren't.
*/
uint32_t recovery_reason;
/* Firmware slot used last boot (0=A, 1=B) */