futility: cmd_show uses only vboot 2.0 APIs

This removes the remaining vboot 1.0 API calls from cmd_show.

BUG=chromium:611535
BRANCH=none
TEST=make runtests

Change-Id: I03c4260aa034100efbbea1005367cd85dfff273d
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/350173
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
This commit is contained in:
Randall Spangler
2016-06-03 14:00:27 -07:00
committed by chrome-bot
parent 46b77fb2f0
commit 158b29672a
11 changed files with 151 additions and 87 deletions

View File

@@ -12,6 +12,7 @@
#include "vboot_struct.h"
struct rsa_st;
struct vb2_packed_key;
struct vb2_private_key;
/**
* Returns the SHA1 digest of the packed key data as a string.
@@ -26,8 +27,18 @@ struct vb2_packed_key;
*/
const char *packed_key_sha1_string(const struct vb2_packed_key *key);
/* Prints the sha1sum of a VbPrivateKey to stdout. */
void PrintPrivKeySha1Sum(VbPrivateKey *key);
/**
* Returns the SHA1 digest of the private key data as a string.
*
* The returned string is a global static buffer, so each call to this
* overwrites the previous digest string. So don't call this more than once
* per printf().
*
* @param key Key to print digest for
*
* @return A string containing the SHA1 digest.
*/
const char *private_key_sha1_string(const struct vb2_private_key *key);
/*
* Our packed RSBPublicKey buffer (historically in files ending with ".keyb",