diff options
| author | Ilya Smirnov <ismirno@us.ibm.com> | 2019-01-03 15:09:17 -0600 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2019-01-10 14:53:38 -0600 |
| commit | 26f7f6d12b118253c3ba841dacedf34beaa93ff9 (patch) | |
| tree | ecd52e5bb661460a1ffc90979436b804321cde40 /src/usr/secureboot/trusted/test | |
| parent | 21f75b9e4475b92665e4dd8ca182108dab53045f (diff) | |
| download | talos-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-x | src/usr/secureboot/trusted/test/trustedbootTest.H | 6 |
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) { |

