summaryrefslogtreecommitdiffstats
path: root/src/usr/pnor/spnorrp.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/pnor/spnorrp.H')
-rw-r--r--src/usr/pnor/spnorrp.H14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/usr/pnor/spnorrp.H b/src/usr/pnor/spnorrp.H
index 11da539ef..daaa3ffb7 100644
--- a/src/usr/pnor/spnorrp.H
+++ b/src/usr/pnor/spnorrp.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2011,2017 */
+/* Contributors Listed Below - COPYRIGHT 2011,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -33,7 +33,6 @@
#include <map>
#include "pnor_common.H"
#include "ffs.h"
-#include <config.h>
#include <securerom/ROM.H>
namespace SECUREBOOT
@@ -113,13 +112,16 @@ class SPnorRP
* Keep track of secured payload size and secure section addresses
*/
struct LoadRecord{
- uint8_t* secAddr;
- size_t textSize;
- size_t infoSize;
+ uint8_t* secAddr; // virtual address of the start of the record
+ uint64_t hashTableVaddr; // virtual address of the hash table (if it exists)
+ size_t textSize; // size of the protected payload, not including header
+ size_t infoSize; // size of the entire partition
size_t refCount;
+ bool hasHashTable; // indicates if the record has a hash table
+
SHA512_t payloadTextHash;
LoadRecord()
- :secAddr(nullptr), textSize(0), infoSize(0), refCount(0)
+ :secAddr(nullptr), hashTableVaddr(0), textSize(0), infoSize(0), refCount(0), hasHashTable(false)
{
memset(&payloadTextHash[0], 0, SHA512_DIGEST_LENGTH);
}
OpenPOWER on IntegriCloud