summaryrefslogtreecommitdiffstats
path: root/src/usr/secureboot/trusted/test
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/trusted/test
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/trusted/test')
-rwxr-xr-xsrc/usr/secureboot/trusted/test/trustedbootTest.H6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/usr/secureboot/trusted/test/trustedbootTest.H b/src/usr/secureboot/trusted/test/trustedbootTest.H
index 28917a959..83792cba0 100755
--- a/src/usr/secureboot/trusted/test/trustedbootTest.H
+++ b/src/usr/secureboot/trusted/test/trustedbootTest.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2015,2018 */
+/* Contributors Listed Below - COPYRIGHT 2015,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -905,7 +905,9 @@ class TrustedBootTest: public CxxTest::TestSuite
for (auto pTpm: tpmList)
{
uint64_t randNum = 0;
- err = TRUSTEDBOOT::GetRandom(pTpm, randNum);
+ err = TRUSTEDBOOT::GetRandom(pTpm,
+ reinterpret_cast<uint8_t*>(&randNum),
+ sizeof(randNum));
num_ops ++;
if(err)
{
OpenPOWER on IntegriCloud