vtpmmgr: Convert TPM_Seal to use TPM_PCR_INFO_LONG
authorJason Andryuk <andryuk@aero.org>
Mon, 21 Apr 2014 17:23:00 +0000 (13:23 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 23 Apr 2014 10:57:53 +0000 (11:57 +0100)
commit2c8a51eebeb54c49eecec97ffacf393145738284
tree21b2baf37578183f91cb9b1dbcc59bdcdd490b78
parentd426026701b3a74bbd2776a5c45c265e7775773e
vtpmmgr: Convert TPM_Seal to use TPM_PCR_INFO_LONG

Infineon 1.2 TPMs fail TPM_Seal commands with TPM_BAD_PARAMETER when
PCRS are specified by a TPM_PCR_INFO structure.  Using a
TPM_PCR_INFO_LONG structure to specify PCRs succeeds, so update to use
that.  This also requires changes to use TPM_STORED_DATA12 for the
result.

Signed-off-by: Jason Andryuk <andryuk@aero.org>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
stubdom/vtpmmgr/disk_tpm.c
stubdom/vtpmmgr/marshal.h
stubdom/vtpmmgr/tcg.h
stubdom/vtpmmgr/tpm.c
stubdom/vtpmmgr/tpm.h