aboutsummaryrefslogtreecommitdiffstats
path: root/src/std
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.vnet.ibm.com>2016-08-05 11:07:09 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-08-10 15:01:04 -0400
commit0fb23c327d553049500d251ae9376c3e2ce1f2d1 (patch)
treec1dadbb62cd02d252afc230a7288686196f57678 /src/std
parent74544faa47b7fefebfe3a65c1419d5e436986d1b (diff)
downloadseabios-0fb23c327d553049500d251ae9376c3e2ce1f2d1.tar.gz
tpm: Restructure tpm20_extend to use buffer and take hash as parameter
Restructure the tpm20_extend function to use a buffer for the command to send to the TPM. The size of the buffer is calculated from the size of tpm2_req_extend structure and the appended SHA1 hash. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Diffstat (limited to 'src/std')
-rw-r--r--src/std/tcg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/std/tcg.h b/src/std/tcg.h
index d60ee09a..16446841 100644
--- a/src/std/tcg.h
+++ b/src/std/tcg.h
@@ -442,7 +442,6 @@ struct tpm2_req_hierarchychangeauth {
} PACKED;
struct tpm2_digest_value {
- u32 count; /* 1 entry only */
u16 hashalg; /* TPM2_ALG_SHA1 */
u8 sha1[SHA1_BUFSIZE];
} PACKED;
@@ -452,6 +451,7 @@ struct tpm2_req_extend {
u32 pcrindex;
u32 authblocksize;
struct tpm2_authblock authblock;
+ u32 count;
struct tpm2_digest_value digest;
} PACKED;