summaryrefslogtreecommitdiffstats
path: root/src/usr/secureboot/trusted/trustedTypes.C
diff options
context:
space:
mode:
authorIlya Smirnov <ismirno@us.ibm.com>2019-01-15 16:08:48 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-02-19 16:56:50 -0600
commit00325c6de8baa143c8e06e9324d6ba997465aa1f (patch)
tree819430f83cbfdb317e99878b05a6991734bd1852 /src/usr/secureboot/trusted/trustedTypes.C
parent6781c16acf6de4b08cbc55f2569062ba1c655592 (diff)
downloadtalos-hostboot-00325c6de8baa143c8e06e9324d6ba997465aa1f.tar.gz
talos-hostboot-00325c6de8baa143c8e06e9324d6ba997465aa1f.zip
Secureboot: Enhanced Multinode Comm: Slave Node
This commit introduces the logic to create the slave response for the new enhanced multinode comm protocol. The slave response consists of an eye catcher, node ID, quote and signature data from TPM, PCR contents of the slave node TPM, Attestation Key Certificate, and the TPM log. All of the above data is packaged into a binary blob to be sent back to the master node. Change-Id: I927c6ca937e6c07af4185cf54c782697c5d822f6 RTC: 203643 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70791 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com> Reviewed-by: Christopher J. Engel <cjengel@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/secureboot/trusted/trustedTypes.C')
-rw-r--r--src/usr/secureboot/trusted/trustedTypes.C6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/secureboot/trusted/trustedTypes.C b/src/usr/secureboot/trusted/trustedTypes.C
index fe8112151..f78b7411a 100644
--- a/src/usr/secureboot/trusted/trustedTypes.C
+++ b/src/usr/secureboot/trusted/trustedTypes.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2015,2017 */
+/* Contributors Listed Below - COPYRIGHT 2015,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -378,7 +378,7 @@ namespace TRUSTEDBOOT
sizeof(TPMU_HA) < val->size)
{
TRACUCOMP( g_trac_trustedboot,
- "TPM2B_DIGEST::unmarshal invalid size");
+ "TPM2B_DIGEST::unmarshal invalid size (%d)", val->size);
return NULL;
}
i_tpmBuf = unmarshalChunk(i_tpmBuf, io_tpmBufSize,
@@ -393,7 +393,7 @@ namespace TRUSTEDBOOT
{
i_tpmBuf = unmarshalChunk(i_tpmBuf, io_tpmBufSize,
&(val->count), sizeof(val->count));
- if (NULL != i_tpmBuf && HASH_COUNT < val->count)
+ if (NULL != i_tpmBuf && FW_USED_PCR_COUNT < val->count)
{
TRACUCOMP( g_trac_trustedboot,
"TPML_DIGEST::unmarshal invalid count %d", val->count);
OpenPOWER on IntegriCloud