summaryrefslogtreecommitdiffstats
path: root/src/include/usr/secureboot
diff options
context:
space:
mode:
authorStephen Cprek <smcprek@us.ibm.com>2017-03-28 11:29:51 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-04-10 17:54:17 -0400
commitb35084be0a0315dfedeeebab55eaf37345e637f1 (patch)
treead10299c4f29704a70a033a3265b4ce0c3bc0a74 /src/include/usr/secureboot
parenta7bf050d4ddba121d7502939fc0c4ce517ef8e42 (diff)
downloadblackbird-hostboot-b35084be0a0315dfedeeebab55eaf37345e637f1.tar.gz
blackbird-hostboot-b35084be0a0315dfedeeebab55eaf37345e637f1.zip
Port SBKT signing and secure loading
Change-Id: I3817cbf8eb25bc83d538d9eb6ea4c5e801603f74 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38543 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/secureboot')
-rw-r--r--src/include/usr/secureboot/service.H8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/include/usr/secureboot/service.H b/src/include/usr/secureboot/service.H
index 86da6a64b..718efc686 100644
--- a/src/include/usr/secureboot/service.H
+++ b/src/include/usr/secureboot/service.H
@@ -30,16 +30,12 @@
#include <secureboot/settings.H>
#include <utility>
#include <cstdint>
+#include <securerom/sha512.H>
-typedef uint8_t SHA512_t[64];
+typedef uint8_t SHA512_t[SHA512_DIGEST_LENGTH];
typedef std::vector< std::pair<void*,size_t> > blobPair_t;
-/* From sha512.h: */
-#define SHA512_DIGEST_LENGTH 64
-typedef uint8_t __attribute__((aligned(8))) sha2_hash_t[ \
- SHA512_DIGEST_LENGTH / sizeof(uint8_t) ];
-
// TODO securebootp9 added for spnorrp.C - service.H needs many more updates
// in order to match the p8 version
const size_t HASH_PAGE_TABLE_ENTRY_SIZE = 32;
OpenPOWER on IntegriCloud