8ee1242f14
While the TPM expects and returns the data in big-endian, the SAPI
implementation converts it to native-endianness. As stated in the
SAPI specification (section 3.2):
8. All SAPI data SHALL be in native-endian format. This means that
the SAPI implementation will do any endian conversion required for
both inputs and outputs.
So to use the exponent in a chunk we have to convert it to big-endian again.
Fixes:
|
||
---|---|---|
.. | ||
plugins/tpm | ||
Android.mk | ||
Makefile.am | ||
tpm_tss.c | ||
tpm_tss.h | ||
tpm_tss_quote_info.c | ||
tpm_tss_quote_info.h | ||
tpm_tss_trousers.c | ||
tpm_tss_trousers.h | ||
tpm_tss_tss2.h | ||
tpm_tss_tss2_names.h | ||
tpm_tss_tss2_names_v1.c | ||
tpm_tss_tss2_names_v2.c | ||
tpm_tss_tss2_v1.c | ||
tpm_tss_tss2_v2.c |