You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The integers in the TPML_PCR_SELECTION struct of the PCR output file (serialized) of tpm2_quote are written in little-endian byte order. On the other hand, the quote message (type TPMS_ATTEST) generated by the TPM with tpm2_quote -m <msg_file> also contains the same TPML_PCR_SELECTION, but in big-endian byte order (data is generated by the TPM).
According to the TPM 2.0 specification [TPM 2.0 Part 1, 7.4.1], integers shall be written in big-endian byte order when marshaling buffers.
The little-endian byte order makes the output format of tpm2_quote and the input format for tpm2_checkquote incompatible with other libraries (i.e. go-tpm).
The text was updated successfully, but these errors were encountered:
The integers in the
TPML_PCR_SELECTION
struct of the PCR output file (serialized) oftpm2_quote
are written in little-endian byte order. On the other hand, the quote message (typeTPMS_ATTEST
) generated by the TPM withtpm2_quote -m <msg_file>
also contains the sameTPML_PCR_SELECTION
, but in big-endian byte order (data is generated by the TPM).According to the TPM 2.0 specification [TPM 2.0 Part 1, 7.4.1], integers shall be written in big-endian byte order when marshaling buffers.
The little-endian byte order makes the output format of
tpm2_quote
and the input format fortpm2_checkquote
incompatible with other libraries (i.e. go-tpm).The text was updated successfully, but these errors were encountered: