diff options
author | Randall Spangler <rspangler@chromium.org> | 2014-11-04 17:50:32 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-11-12 19:57:57 +0000 |
commit | 43e0a9ed6c0b332631442fcf581e7456d62e4532 (patch) | |
tree | c3bc2345e722a682a4667420e777d1079b8c4da8 /firmware/2lib/include/2return_codes.h | |
parent | 054c1147989d39a432923cc359d123f0d8e9390a (diff) | |
download | vboot-43e0a9ed6c0b332631442fcf581e7456d62e4532.tar.gz |
vboot2: Add code and tests for verifying vb2_fw_preamble2
This is the last low-level data structure verification code for the
new data structures. Subsequent changes are the next level up the
food chain.
BUG=chromium:423882
BRANCH=none
TEST=VBOOT2=1 make runtests
Change-Id: I2e45106c27447eb624c1ed562e40b98088249742
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/228360
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'firmware/2lib/include/2return_codes.h')
-rw-r--r-- | firmware/2lib/include/2return_codes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/2lib/include/2return_codes.h b/firmware/2lib/include/2return_codes.h index 054655ee..4ff84468 100644 --- a/firmware/2lib/include/2return_codes.h +++ b/firmware/2lib/include/2return_codes.h @@ -302,6 +302,12 @@ enum vb2_return_code { /* Kernel subkey outside preamble */ VB2_ERROR_PREAMBLE_KERNEL_SUBKEY_OUTSIDE, + /* Bad magic number */ + VB2_ERROR_PREAMBLE_MAGIC, + + /* Hash is signed */ + VB2_ERROR_PREAMBLE_HASH_SIGNED, + /********************************************************************** * Misc higher-level code errors */ |