summaryrefslogtreecommitdiffstats
path: root/src/usr/secureboot/base
diff options
context:
space:
mode:
authorStephen Cprek <smcprek@us.ibm.com>2017-03-01 10:44:16 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-04-10 17:46:57 -0400
commita7bf050d4ddba121d7502939fc0c4ce517ef8e42 (patch)
treee2f58591ec40a0f113d258f5b69dbbfcb1b397ab /src/usr/secureboot/base
parentb8169717c26a8eb780569c50cce29ca47d3bb9fa (diff)
downloadtalos-hostboot-a7bf050d4ddba121d7502939fc0c4ce517ef8e42.tar.gz
talos-hostboot-a7bf050d4ddba121d7502939fc0c4ce517ef8e42.zip
Add header to and verify Hostboot Bootloader for sbe update
Change-Id: I2704ad9a110a52fe0ff0e290fdd9205a42bbd050 RTC:159915 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38326 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@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/base')
-rw-r--r--src/usr/secureboot/base/securerommgr.C4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/usr/secureboot/base/securerommgr.C b/src/usr/secureboot/base/securerommgr.C
index 1a21f3350..b51127820 100644
--- a/src/usr/secureboot/base/securerommgr.C
+++ b/src/usr/secureboot/base/securerommgr.C
@@ -265,12 +265,10 @@ errlHndl_t SecureRomManager::verifyContainer(void * i_container,
memset(&l_hw_parms, 0, sizeof(ROM_hw_params));
// Now set hw_key_hash, which is of type sha2_hash_t, to iv_key_hash
- memcpy (&l_hw_parms.hw_key_hash, &iv_key_hash, sizeof(sha2_hash_t));
-
if (i_hwKeyHash == nullptr)
{
// Use current hw hash key
- memcpy (&l_hw_parms.hw_key_hash, &iv_key_hash, sizeof(sha2_hash_t));
+ memcpy (&l_hw_parms.hw_key_hash, iv_key_hash, sizeof(sha2_hash_t));
}
else
{
OpenPOWER on IntegriCloud