diff options
author | Joel Kitching <kitching@google.com> | 2019-10-07 15:28:43 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-12-25 22:33:00 +0000 |
commit | 582453dd62a9616a95a19b42a36f6adb8988e329 (patch) | |
tree | 1b65180b07771eef688cac73b23dbc0dafe082a1 /futility/vb1_helper.c | |
parent | 80c1a85a87e589ed74962cad98f4892dbe6a3283 (diff) | |
download | vboot-582453dd62a9616a95a19b42a36f6adb8988e329.tar.gz |
vboot: fix up some host key functions for host_key2.cfactory-excelsior-12812.B
Deprecate:
PublicKeyInit --> vb2_init_packed_key
PublicKeyCopy --> vb2_copy_packed_key
Rename:
packed_key_looks_ok --> vb2_packed_key_looks_ok
Move vb2_packed_key_looks_ok from host_key.c to host_key2.c.
Move tests/vboot_common_tests.c to tests/vb2_host_key_tests.c.
Remove firmware/lib/vboot_common.c.
Remove host/lib/host_key.c.
BUG=b:124141368, chromium:968464
TEST=make clean && make runtests
BRANCH=none
Change-Id: I627b2af0416ac69460f9860614a69cad8bdb76a7
Signed-off-by: Joel Kitching <kitching@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1844597
Tested-by: Joel Kitching <kitching@chromium.org>
Reviewed-by: Joel Kitching <kitching@chromium.org>
Commit-Queue: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'futility/vb1_helper.c')
-rw-r--r-- | futility/vb1_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/futility/vb1_helper.c b/futility/vb1_helper.c index d1d7535e..74391827 100644 --- a/futility/vb1_helper.c +++ b/futility/vb1_helper.c @@ -797,7 +797,7 @@ enum futil_file_type ft_recognize_vb1_key(uint8_t *buf, uint32_t len) { /* Maybe just a packed public key? */ const struct vb2_packed_key *pubkey = (struct vb2_packed_key *)buf; - if (packed_key_looks_ok(pubkey, len)) + if (vb2_packed_key_looks_ok(pubkey, len) == VB2_SUCCESS) return FILE_TYPE_PUBKEY; /* How about a private key? */ |