diff options
| author | Mike Baiocchi <mbaiocch@us.ibm.com> | 2017-04-06 10:19:16 -0500 |
|---|---|---|
| committer | William G. Hoffa <wghoffa@us.ibm.com> | 2017-04-19 09:20:23 -0400 |
| commit | 828c58031ebc7236836108b257725e67e0e9dce2 (patch) | |
| tree | dd073e0d09ace15af8d4a7f392f522f4066bcbff /src/include/usr | |
| parent | 909542d1ff7e5de27b6b671c5ffbb215dda834ab (diff) | |
| download | talos-hostboot-828c58031ebc7236836108b257725e67e0e9dce2.tar.gz talos-hostboot-828c58031ebc7236836108b257725e67e0e9dce2.zip | |
Update the HW Key Hash in HBBL from PNOR for SBE Update Operations
This commit updates the HW Key Hash section of the HBBL partition
pulled from PNOR before the SBE Update customization process.
By default the HW Key Hash used to boot the system is used, but
inside a Secureboot Key Transition (SBKT) IPL the new HW Key Hash
will be used.
Change-Id: I5ad235784cca53d746a46f5154c35f77540d24ba
RTC: 167585
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38926
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Stephen M. Cprek <smcprek@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: Marshall J. Wilks <mjwilks@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include/usr')
| -rw-r--r-- | src/include/usr/secureboot/service.H | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/usr/secureboot/service.H b/src/include/usr/secureboot/service.H index 718efc686..88d50283b 100644 --- a/src/include/usr/secureboot/service.H +++ b/src/include/usr/secureboot/service.H @@ -34,6 +34,14 @@ typedef uint8_t SHA512_t[SHA512_DIGEST_LENGTH]; +/* + * @brief Used to capture the first 4 bytes of the hash for tracing purposes + */ +inline uint32_t sha512_to_u32(SHA512_t i_hash) +{ + return *(reinterpret_cast<uint32_t*>(reinterpret_cast<char*>(i_hash))); +}; + typedef std::vector< std::pair<void*,size_t> > blobPair_t; // TODO securebootp9 added for spnorrp.C - service.H needs many more updates |

