summaryrefslogtreecommitdiffstats
path: root/src/usr/secureboot
diff options
context:
space:
mode:
authorJaymes Wilks <mjwilks@us.ibm.com>2017-10-26 09:37:07 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2017-11-09 17:50:21 -0500
commit5fa02a909075081da87ea537d13cb7a61e543176 (patch)
tree5fb5437e9f54d6964f6bdb9c10bb8306b19ad585 /src/usr/secureboot
parent3378748dbc2e153ed005e832b8398adfb2729a74 (diff)
downloadtalos-hostboot-5fa02a909075081da87ea537d13cb7a61e543176.tar.gz
talos-hostboot-5fa02a909075081da87ea537d13cb7a61e543176.zip
Support selecting fips or op-build for signing process
Adds a new '--build-type' option to genPnorImages.pl to specify either fspbuild or opbuild, which adds the appropriate magic value to the secure header during the signing process. Change-Id: I46a97f88666a5cc925797d3ad0e870a5f5bac89a RTC:163655 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48930 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/secureboot')
-rw-r--r--src/usr/secureboot/common/containerheader.C5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/usr/secureboot/common/containerheader.C b/src/usr/secureboot/common/containerheader.C
index 169c1254d..069a587d9 100644
--- a/src/usr/secureboot/common/containerheader.C
+++ b/src/usr/secureboot/common/containerheader.C
@@ -152,6 +152,11 @@ size_t ContainerHeader::totalContainerSize() const
return iv_headerInfo.hw_hdr.container_size;
}
+uint32_t ContainerHeader::prefixHeaderFlags() const
+{
+ return iv_headerInfo.hw_prefix_hdr.flags;
+}
+
const ecc_key_t* ContainerHeader::hw_keys() const
{
return &iv_headerInfo.hw_hdr.hw_pkey_a;
OpenPOWER on IntegriCloud