From c4119b881e8a6e3746ac4553dee024351d97226f Mon Sep 17 00:00:00 2001 From: Chris Engel Date: Fri, 18 Sep 2015 09:17:23 -0500 Subject: Trustedboot add TPM and associated i2c master to the devtree Change-Id: Ic2edee549d23669f046a6e78f0cfae838faaec2d RTC: 125287 ForwardPort: yes Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25470 Reviewed-by: Marshall J. Wilks Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- src/include/usr/secureboot/service.H | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/include/usr/secureboot/service.H') diff --git a/src/include/usr/secureboot/service.H b/src/include/usr/secureboot/service.H index 8878bad09..1cc518007 100644 --- a/src/include/usr/secureboot/service.H +++ b/src/include/usr/secureboot/service.H @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2013,2014 */ +/* Contributors Listed Below - COPYRIGHT 2013,2016 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -26,6 +28,10 @@ #include typedef uint8_t SHA512_t[64]; +/* From sha512.h: */ +#define SHA512_DIGEST_LENGTH 64 +typedef uint8_t __attribute__((aligned(8))) sha2_hash_t[ \ + SHA512_DIGEST_LENGTH / sizeof(uint8_t) ]; namespace SECUREBOOT { @@ -71,6 +77,13 @@ namespace SECUREBOOT */ errlHndl_t hashBlob(void * i_blob, size_t i_size, SHA512_t o_buf); + /** + * @brief Retrieve the internal hardware hash key from secure ROM + * object. + * @param[out] o_hash Reference to the sha2_hash_t array to copy the + * hash to. + */ + void getHwHashKeys(sha2_hash_t o_hash); } #endif -- cgit v1.2.3