summaryrefslogtreecommitdiffstats
path: root/src/usr/secureboot/common/errlud_secure.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/secureboot/common/errlud_secure.H')
-rw-r--r--src/usr/secureboot/common/errlud_secure.H51
1 files changed, 50 insertions, 1 deletions
diff --git a/src/usr/secureboot/common/errlud_secure.H b/src/usr/secureboot/common/errlud_secure.H
index dddc479eb..1e05399b1 100644
--- a/src/usr/secureboot/common/errlud_secure.H
+++ b/src/usr/secureboot/common/errlud_secure.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2017 */
+/* Contributors Listed Below - COPYRIGHT 2017,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -174,6 +174,55 @@ class UdSecuritySettings : public ERRORLOG::ErrlUserDetails
};
+/**
+ * @class UdVerifyInfo
+ *
+ * Adds Secure verification info to an error log as user detail data
+ */
+class UdVerifyInfo : public ERRORLOG::ErrlUserDetails
+{
+ public:
+ /**
+ * @brief Constructor
+ * @param[in] i_compId Component ID associated with blob being verified
+ * @param[in] i_protectedSize Protected Payload Size
+ * @param[in] i_ids Vector of IDs (PNOR or Lid Id(s)) associated with
+ * the blob that is being verified.
+ * @param[in] i_measuredHash Measured SHA512 Hash
+ * @param[in] i_expectedHash Expected SHA512 Hash
+ */
+ UdVerifyInfo(const char* i_compId,
+ const uint64_t i_protectedSize,
+ const RomVerifyIds& i_ids,
+ const SHA512_t& i_measuredHash,
+ const SHA512_t& i_expectedHash);
+
+ /**
+ * @brief Destructor
+ */
+ virtual ~UdVerifyInfo() {}
+
+ /**
+ * Delete Copy Constructor
+ */
+ UdVerifyInfo(const UdVerifyInfo&) = delete;
+
+ /**
+ * Delete Copy Assignment
+ */
+ UdVerifyInfo& operator= (const UdVerifyInfo&) = delete;
+
+ /**
+ * Delete Move Constructor
+ */
+ UdVerifyInfo (UdVerifyInfo&&) = delete;
+
+ /**
+ * Delete Move Assignment
+ */
+ UdVerifyInfo& operator = (UdVerifyInfo&&) = delete;
+};
+
} // end SECUREBOOT namespace
#endif
OpenPOWER on IntegriCloud