From 4e4c19602edf3834b50d66d3ba067e895aca6fa0 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Tue, 3 Feb 2015 17:07:15 -0800 Subject: futility: Add create command to make keypairs from RSA files This command reads a single .pem file and emits the public and private keys generated from it. It can produce both the old-style vboot 1.0 keys (.vbpubk and .vbprivk), or the new vboot 2.1 format keys (.vbpubk2 and .vbprik2). The default is the new format, but you can give futility the --vb1 arg to force the old format. A test is included. BUG=chromium:231547 BRANCH=ToT TEST=make runtests Change-Id: I4713dc5bf34151052870f88ba52ddccf9d4dab50 Signed-off-by: Bill Richardson Reviewed-on: https://chromium-review.googlesource.com/246766 Reviewed-by: Randall Spangler --- host/lib/signature_digest.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'host/lib/signature_digest.c') diff --git a/host/lib/signature_digest.c b/host/lib/signature_digest.c index 81c666ea..c9e721e4 100644 --- a/host/lib/signature_digest.c +++ b/host/lib/signature_digest.c @@ -3,11 +3,8 @@ * found in the LICENSE file. */ -#include "signature_digest.h" #define OPENSSL_NO_SHA -#include #include -#include #include #include @@ -15,6 +12,7 @@ #include "cryptolib.h" #include "host_common.h" +#include "signature_digest.h" uint8_t* PrependDigestInfo(unsigned int algorithm, uint8_t* digest) { -- cgit v1.2.1