summaryrefslogtreecommitdiffstats
path: root/src/usr/secureboot/trusted/trustedTypes.H
diff options
context:
space:
mode:
authorChris Engel <cjengel@us.ibm.com>2017-07-06 22:04:32 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-08-11 10:04:45 -0400
commita0e8246b27da999d4d8beba64994daef6333a442 (patch)
treee86e7042b4442112718aedf90703904a8c4510bf /src/usr/secureboot/trusted/trustedTypes.H
parentf08b3735c1402f8fe9292822e1eb95b43357b4ce (diff)
downloadtalos-hostboot-a0e8246b27da999d4d8beba64994daef6333a442.tar.gz
talos-hostboot-a0e8246b27da999d4d8beba64994daef6333a442.zip
MFG support to validate TPM provisioning
Change-Id: I137b6f6c81cbcd3c2379e4ef34ddff021c3cd576 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42835 Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Timothy R. Block <block@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@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/trusted/trustedTypes.H')
-rw-r--r--src/usr/secureboot/trusted/trustedTypes.H19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/usr/secureboot/trusted/trustedTypes.H b/src/usr/secureboot/trusted/trustedTypes.H
index ee19a7200..0798295c5 100644
--- a/src/usr/secureboot/trusted/trustedTypes.H
+++ b/src/usr/secureboot/trusted/trustedTypes.H
@@ -75,6 +75,10 @@ namespace TRUSTEDBOOT
HASH_COUNT = 2, ///< Maximum # of digests
PCR_SELECT_MAX = (IMPLEMENTATION_PCR+7)/8, ///< PCR selection octet max
+
+ NVIDX_RSAEKCERT = 0x01C00002, ///< RSA EK certificate NV index
+ NVIDX_ECCEKCERT = 0x01C0000A, ///< ECC EK certificate NV index
+ NVIDX_IBMPLATCERT = 0x01C10180, ///< IBM Platform certificate index
};
/**
@@ -110,9 +114,13 @@ namespace TRUSTEDBOOT
TPM_SU_STATE = 0x0001,///< TPM perform restore saved state
// Capability
+ MAX_TPML_HANDLES = 20,
+ TPM_CAP_HANDLES = 1,
MAX_TPM_PROPERTIES = 2,
TPM_CAP_TPM_PROPERTIES = 0x00000006, ///< Pull TPM Properties
+ // TPM Handles
+ TPM_HT_NV_INDEX = 0x01000000,
// TPM Properties
TPM_PT_MANUFACTURER = 0x00000105,
TPM_PT_FIRMWARE_VERSION_1 = 0x0000010B,
@@ -152,10 +160,19 @@ namespace TRUSTEDBOOT
TPML_TAGGED_TPM_PROPERTY* val,
const uint8_t* i_tpmBuf,
size_t* io_tpmBufSize);
+ struct _TPML_HANDLE
+ {
+ uint32_t count; ///< Number of handles
+ uint32_t handles[MAX_TPML_HANDLES];
+ } PACKED;
+ typedef struct _TPML_HANDLE TPML_HANDLE;
+ const uint8_t* TPML_HANDLE_unmarshal(TPML_HANDLE* val,
+ const uint8_t* i_tpmBuf,
+ size_t* io_tpmBufSize);
union _TPMU_CAPABILITIES
{
- // Currently only TPM properties supported
+ TPML_HANDLE tpmHandles;
TPML_TAGGED_TPM_PROPERTY tpmProperties;
} PACKED;
typedef union _TPMU_CAPABILITIES TPMU_CAPABILITIES;
OpenPOWER on IntegriCloud