I'm using 64-bit GNU/Linux, in particular, Ubuntu 8.04. I'm compiling code that uses Tspi_TPM_Quote2 against libtspi1 0.3.1-4ubuntu0.3. The typedef for TPM_QUOTE_INFO2 does not match what's returned for a quote. The length of the data returned is 52, but if you use TPM_QUOTE_INFO2 to access the composite PCR hash, you reference memory outside of the quote. The headers say the size of a TPM_PCR_SELECTION is 16, but the quote has only 6 bytes of data for that field. I have enclosed the code I use for extracting the composite PCR hash. The fact that it works demonstrates the problem.
John D. Ramsdell -- ramsdell@mitre.org
Hacked code to extract a composite PCR hash from a new quote
This bug report is bogus. I didn't realize Tspi_TPM_Quote2 returns a blob and
one has to decode it using routines such as Trspi_UnLoadBlob_PCR_INFO_SHORT.
Thanks for stressing TrouSerS features in any case.
Rajiv