diff options
| author | Mike Baiocchi <mbaiocch@us.ibm.com> | 2017-03-27 08:13:15 -0500 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-04-03 11:22:19 -0400 |
| commit | 5284cb4636143bc16ce06c10f40133639e35a3be (patch) | |
| tree | 989ee196c2e86f855069a5944ef1a90793b18d12 /src/include/usr/sbe | |
| parent | 3eac7d61c5a1f78006c1c4b0e9621d91e2dbf47f (diff) | |
| download | talos-hostboot-5284cb4636143bc16ce06c10f40133639e35a3be.tar.gz talos-hostboot-5284cb4636143bc16ce06c10f40133639e35a3be.zip | |
Read the HW Key Hash from a Processor's SBE Seeprom
This commit adds an interface to read the HW Key Hash located in the HBBL
section of each Processor's two SBE Seeproms.
Change-Id: I906434269746c296c646f7b0594575c58b145294
RTC: 167585
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38465
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/sbe')
| -rw-r--r-- | src/include/usr/sbe/sbeif.H | 22 | ||||
| -rw-r--r-- | src/include/usr/sbe/sbereasoncodes.H | 1 |
2 files changed, 22 insertions, 1 deletions
diff --git a/src/include/usr/sbe/sbeif.H b/src/include/usr/sbe/sbeif.H index 09666df02..bdb09a493 100644 --- a/src/include/usr/sbe/sbeif.H +++ b/src/include/usr/sbe/sbeif.H @@ -27,6 +27,8 @@ #include <errl/errlentry.H> #include <pnor/pnorif.H> +#include <secureboot/service.H> +#include <i2c/eepromif.H> namespace SBE { @@ -36,7 +38,6 @@ namespace SBE typedef uint8_t sbe_image_version_t[SBE_IMAGE_VERSION_SIZE]; - /** * @brief Gets a pointer to the proper SBE image in PNOR * @@ -100,6 +101,25 @@ namespace SBE */ errlHndl_t updateSbeBootSeeprom(TARGETING::Target* i_target); + /** + * @brief Retrieves the HW Key Hash from the Bootloader (HBBL) Section + * of the SBE Image located on a SBE Seeprom + * + * @param[in] i_target Target Processor of the SBE SEEPPROM. + * Assert if nullptr. + * + * @param[in] i_seeprom Specific SEEPROM on the processor to read the + * HW Key Hash from. + * Assert if neither SBE_PRIMARY nor SBE_BACKUP. + * + * @param[out] o_hash HW Key Hash returned from the Processor SEEPROM + * + * @return errlHndl_t Error log handle on failure; otherwise nullptr + */ + errlHndl_t getHwKeyHashFromSbeSeeprom(TARGETING::Target* i_target, + EEPROM::eeprom_chip_types_t i_seeprom, + SHA512_t o_hash); + } //end namespace SBE #endif /* _SBEIF_H */ diff --git a/src/include/usr/sbe/sbereasoncodes.H b/src/include/usr/sbe/sbereasoncodes.H index 611c0153e..380a65aeb 100644 --- a/src/include/usr/sbe/sbereasoncodes.H +++ b/src/include/usr/sbe/sbereasoncodes.H @@ -61,6 +61,7 @@ enum sbeModuleId SBE_WRITE_SBE_IMAGE = 0x10, SBE_GET_SBE_IMAGE_SIZE = 0x11, SBE_APPEND_HBBL = 0x13, + SBE_GET_HW_KEY_HASH = 0x14, }; /** |

