summaryrefslogtreecommitdiffstats
path: root/src/usr/secureboot/base
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/secureboot/base')
-rw-r--r--src/usr/secureboot/base/service.C12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/usr/secureboot/base/service.C b/src/usr/secureboot/base/service.C
index 075a7313c..673ec709e 100644
--- a/src/usr/secureboot/base/service.C
+++ b/src/usr/secureboot/base/service.C
@@ -45,6 +45,7 @@
#include <util/misc.H>
#include "../common/securetrace.H"
+#include "../common/errlud_secure.H"
// Quick change for unit testing
//#define TRACUCOMP(args...) TRACFCOMP(args)
@@ -187,7 +188,16 @@ void handleSecurebootFailure(errlHndl_t &io_err, bool i_waitForShutdown)
// Add security register values
addSecurityRegistersToErrlog(io_err);
- io_err->collectTrace(SECURE_COMP_NAME,ERROR_TRACE_SIZE);
+
+ // Add HW Keys' Hash to trace and the error log
+ SHA512_t hash = {0};
+ getHwKeyHash(hash);
+
+ SB_INF_BIN("HwKeyHash", &hash, sizeof(hash));
+
+ UdSystemHwKeyHash( hash ).addToLog(io_err);
+
+ io_err->collectTrace(SECURE_COMP_NAME,MAX_ERROR_TRACE_SIZE);
errlCommit(io_err, SECURE_COMP_ID);
OpenPOWER on IntegriCloud