summaryrefslogtreecommitdiffstats
path: root/src/usr/secureboot/node_comm
diff options
context:
space:
mode:
authorIlya Smirnov <ismirno@us.ibm.com>2019-01-03 15:09:17 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-01-10 14:53:38 -0600
commit26f7f6d12b118253c3ba841dacedf34beaa93ff9 (patch)
treeecd52e5bb661460a1ffc90979436b804321cde40 /src/usr/secureboot/node_comm
parent21f75b9e4475b92665e4dd8ca182108dab53045f (diff)
downloadtalos-hostboot-26f7f6d12b118253c3ba841dacedf34beaa93ff9.tar.gz
talos-hostboot-26f7f6d12b118253c3ba841dacedf34beaa93ff9.zip
Trustedboot: GetRandom API Changes
New Secure Multinode Comm protocol calls for generation of random number that is 32 bytes in size. This commit extends the existing GetRandom API to be able to accept a size of the random number to be generated by TPM. Change-Id: Ic6fc1705594f51f121ff75aaa489d6d32fe41409 RTC: 202364 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70116 Tested-by: Jenkins Server <pfd-jenkins+hostboot@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: Nicholas E. Bofferding <bofferdn@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/node_comm')
-rw-r--r--src/usr/secureboot/node_comm/node_comm_exchange.C4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/secureboot/node_comm/node_comm_exchange.C b/src/usr/secureboot/node_comm/node_comm_exchange.C
index 78521b0e4..eb29413c6 100644
--- a/src/usr/secureboot/node_comm/node_comm_exchange.C
+++ b/src/usr/secureboot/node_comm/node_comm_exchange.C
@@ -172,7 +172,9 @@ errlHndl_t nodeCommAbusGetRandom(uint64_t & o_nonce)
// but no extra error handling is needed as it should not have gotten this
// far if CONFIG_TPMDD wasn't set
#ifdef CONFIG_TPMDD
- err = TRUSTEDBOOT::GetRandom(tpm_tgt, o_nonce);
+ err = TRUSTEDBOOT::GetRandom(tpm_tgt,
+ reinterpret_cast<uint8_t*>(&o_nonce),
+ sizeof(o_nonce));
#endif
if (err)
{
OpenPOWER on IntegriCloud