diff options
author | Randall Spangler <rspangler@chromium.org> | 2014-11-20 11:27:38 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-11-27 06:35:01 +0000 |
commit | fb9a216dd677d97f3d6963f668a9b84d349ef339 (patch) | |
tree | c4e10b1c96927f4a64c6f5a53844b80fc23baf5f /firmware/2lib/include/2return_codes.h | |
parent | 59c29202d2d67b97f587152b5457ed89f7430a77 (diff) | |
download | vboot-fb9a216dd677d97f3d6963f668a9b84d349ef339.tar.gz |
vboot2: Add host lib support for bare hash keys
And use them in the other vboot2 unit tests.
BUG=chromium:423882
BRANCH=none
TEST=VBOOT2=1 make runtests
Change-Id: I0c3590649a0acf792e41e295ca4279ccba17a41f
Reviewed-on: https://chromium-review.googlesource.com/231345
Tested-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Commit-Queue: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'firmware/2lib/include/2return_codes.h')
-rw-r--r-- | firmware/2lib/include/2return_codes.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/2lib/include/2return_codes.h b/firmware/2lib/include/2return_codes.h index deae9140..f12f2c12 100644 --- a/firmware/2lib/include/2return_codes.h +++ b/firmware/2lib/include/2return_codes.h @@ -510,6 +510,9 @@ enum vb2_return_code { /* Unable to set description in vb2_private_key_unpack() */ VB2_ERROR_UNPACK_PRIVATE_KEY_DESC, + /* Bad bare hash key in vb2_private_key_unpack() */ + VB2_ERROR_UNPACK_PRIVATE_KEY_HASH, + /* Unable to create RSA data in vb2_private_key_write() */ VB2_ERROR_PRIVATE_KEY_WRITE_RSA, @@ -519,6 +522,9 @@ enum vb2_return_code { /* Unable to write file in vb2_private_key_write() */ VB2_ERROR_PRIVATE_KEY_WRITE_FILE, + /* Bad algorithm in vb2_private_key_hash() */ + VB2_ERROR_PRIVATE_KEY_HASH, + /* Unable to determine key size in vb2_public_key_alloc() */ VB2_ERROR_PUBLIC_KEY_ALLOC_SIZE, @@ -549,6 +555,9 @@ enum vb2_return_code { /* Unable to determine key size in vb2_public_key_pack() */ VB2_ERROR_PUBLIC_KEY_PACK_SIZE, + /* Bad hash algorithm in vb2_publc_key_hash() */ + VB2_ERROR_PUBLIC_KEY_HASH, + /********************************************************************** * Highest non-zero error generated inside vboot library. Note that * error codes passed through vboot when it calls external APIs may |