summaryrefslogtreecommitdiffstats
path: root/src/usr/secureboot/base/securerom.H
diff options
context:
space:
mode:
authorJaymes Wilks <mjwilks@us.ibm.com>2016-10-17 12:15:40 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-11-14 17:17:33 -0500
commit16263a641c48773091dd60b55e28ad77ca5a8574 (patch)
tree97120f76deb4132a1a1b7ceba8701318c5663a68 /src/usr/secureboot/base/securerom.H
parenta904e156364a8f0fd5f6bc2b7094f79cf77da1b2 (diff)
downloadtalos-hostboot-16263a641c48773091dd60b55e28ad77ca5a8574.tar.gz
talos-hostboot-16263a641c48773091dd60b55e28ad77ca5a8574.zip
Secure PNOR Resource Provider port from p8
Adds a Secure PNOR Resource Provider (SPNORRP) layer on top of the original PNORRP to handle verification of secured PNOR sections. Change-Id: Iff25abf599f3c850197c6e6d23ff03e5edf945bb RTC:163078 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31588 Tested-by: Jenkins Server <pfd-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: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/secureboot/base/securerom.H')
-rw-r--r--src/usr/secureboot/base/securerom.H10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/usr/secureboot/base/securerom.H b/src/usr/secureboot/base/securerom.H
index cd5688cc4..bfb16f88b 100644
--- a/src/usr/secureboot/base/securerom.H
+++ b/src/usr/secureboot/base/securerom.H
@@ -139,11 +139,13 @@ class SecureROM
*
* @param[in] i_container Void pointer to effective address
* of container
- * @param[in] i_size Size of container
+ * @param[in] i_hwKeyHash Custom hw keys' hash to test against
+ * [default = nullptr, use current hw hash key
*
- * @return errlHndl_t NULL on success
+ * @return errlHndl_t NULL on success
*/
- errlHndl_t verifyContainer(void * i_container, size_t i_size);
+ errlHndl_t verifyContainer(void * i_container,
+ const sha2_hash_t* i_hwKeyHash = nullptr);
/**
* @brief Hash Blob
@@ -155,7 +157,7 @@ class SecureROM
*
* @return errlHndl_t NULL on success
*/
- errlHndl_t hashBlob(void * i_blob, size_t i_size, SHA512_t io_buf);
+ errlHndl_t hashBlob(const void * i_blob, size_t i_size, SHA512_t io_buf) const;
/**
* @brief Retrieve the internal hardware hash key from secure ROM
OpenPOWER on IntegriCloud