diff options
author | Joel Kitching <kitching@google.com> | 2021-04-14 13:30:53 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-09 19:28:28 +0000 |
commit | f3f56e94c79ffdeda4ad1aa4b3ae120deb502682 (patch) | |
tree | dffff1a088c60aab9af2a990f5c47370198cfda3 /firmware/2lib | |
parent | 542149a5513c88a9be72b116ee089dfca81d5cd8 (diff) | |
download | vboot-f3f56e94c79ffdeda4ad1aa4b3ae120deb502682.tar.gz |
vboot/vboot_kernel: check developer key hash in separate function
Create vb2_verify_kernel_dev_key_hash to encapsulate
developer key hash checking logic.
Also correct formatting of developer key hash when printed
to console.
This CL is part of a series to merge vboot1 and vboot2.0
kernel verification code; see b/181739551.
BUG=b:181739551
TEST=make clean && make runtests
BRANCH=none
Signed-off-by: Joel Kitching <kitching@google.com>
Change-Id: I0253e1e960fb966b67b4643794585ed8355d8efb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2825268
Tested-by: Joel Kitching <kitching@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Commit-Queue: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'firmware/2lib')
-rw-r--r-- | firmware/2lib/include/2return_codes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/2lib/include/2return_codes.h b/firmware/2lib/include/2return_codes.h index 64cfca05..4512ff8b 100644 --- a/firmware/2lib/include/2return_codes.h +++ b/firmware/2lib/include/2return_codes.h @@ -563,8 +563,8 @@ enum vb2_return_code { * deprecated and replaced with VB2_ERROR_KERNEL_KEYBLOCK_* */ VB2_ERROR_DEPRECATED_VBLOCK_KEYBLOCK, - /* Wrong developer key hash in vb2_verify_vblock() */ - VB2_ERROR_VBLOCK_DEV_KEY_HASH, + /* Wrong dev key hash in vb2_verify_kernel_vblock_dev_key_hash() */ + VB2_ERROR_KERNEL_KEYBLOCK_DEV_KEY_HASH, /* Work buffer too small in vb2_load_partition() */ VB2_ERROR_LOAD_PARTITION_WORKBUF, |