summaryrefslogtreecommitdiffstats
path: root/src/usr/secureboot/base/securerom.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/secureboot/base/securerom.C')
-rw-r--r--src/usr/secureboot/base/securerom.C16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/usr/secureboot/base/securerom.C b/src/usr/secureboot/base/securerom.C
index 48b4255cd..82a72c185 100644
--- a/src/usr/secureboot/base/securerom.C
+++ b/src/usr/secureboot/base/securerom.C
@@ -84,6 +84,14 @@ errlHndl_t hashBlob(void * i_blob, size_t i_size, SHA512_t io_buf)
}
+/*
+ * @brief Externally available hardware hash key function
+ */
+void getHwHashKeys(sha2_hash_t o_hash)
+{
+ return Singleton<SecureROM>::instance().getHwHashKeys(o_hash);
+}
+
}; //end SECUREBOOT namespace
@@ -546,6 +554,14 @@ errlHndl_t SecureROM::getHwHashKeys()
}
/**
+ * @brief Retrieve the internal hardware hash key from secure ROM object.
+ */
+void SecureROM::getHwHashKeys(sha2_hash_t o_hash)
+{
+ memcpy(o_hash, iv_hash_key, sizeof(sha2_hash_t));
+}
+
+/**
* @brief Static instance function for testcase only
*/
SecureROM& SecureROM::getInstance()
OpenPOWER on IntegriCloud