vboot2: Use new hostlib functions in unit tests

This removes the hacky conversion from old-style packed keys and
signatures, which existed only because at the time we didn't have the
ability in hostlib to create new-format key and signature structs
directly.

BUG=chromium:423882
BRANCH=none
TEST=VBOOT2=1 make runtests

Change-Id: Id7cb3dfce740f2546464a4caae2629af864d7b45
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/231543
This commit is contained in:
Randall Spangler
2014-11-21 15:33:07 -08:00
committed by chrome-internal-fetch
parent 91852e7f58
commit fc73f08765
5 changed files with 95 additions and 233 deletions

View File

@@ -10,6 +10,8 @@
#include "2struct.h"
struct vb2_public_key;
/* Private key data, in-memory format for use in signing calls. */
struct vb2_private_key {
struct rsa_st *rsa_private_key; /* Private key data */