strongswan/src/libtpmtss
Tobias Brunner 8ee1242f14 libtpmtss: Convert RSA exponent to big-endian when provided by a TPM 2.0
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: 7533cedb9a ("libtpmtss: Read RSA public key exponent instead of assuming its value")
2019-12-10 15:19:32 +01:00
..
plugins/tpm Some whitespace fixes 2019-08-22 15:18:06 +02:00
Android.mk libtpmtss: Fixed Android.mk 2018-08-10 10:09:43 +02:00
Makefile.am libtpmtss: Support for TSS2 v2 libraries 2018-07-19 12:40:42 +02:00
tpm_tss.c libtpmtss: Support for TSS2 v2 libraries 2018-07-19 12:40:42 +02:00
tpm_tss.h tpm: Check FIPS-140-2 and FIPS-186-4 compliance 2018-10-26 09:55:07 +02:00
tpm_tss_quote_info.c Fixed some typos, courtesy of codespell 2016-07-04 12:18:51 +02:00
tpm_tss_quote_info.h Refactoring to tpm_tss_quote_info object 2016-06-26 18:19:05 +02:00
tpm_tss_trousers.c libtpmtss: Add enumeration of supported signature schemes to TSS2 implementations 2018-10-26 09:03:27 +02:00
tpm_tss_trousers.h libtpmtss: Support for TSS2 v2 libraries 2018-07-19 12:40:42 +02:00
tpm_tss_tss2.h libtpmtss: Support for TSS2 v2 libraries 2018-07-19 12:40:42 +02:00
tpm_tss_tss2_names.h libtpmtss: Define missing Doxygen group and fix some comments 2016-06-30 12:12:31 +02:00
tpm_tss_tss2_names_v1.c Some whitespace fixes 2019-08-22 15:18:06 +02:00
tpm_tss_tss2_names_v2.c Add missing strings to several enum string definitions 2019-10-28 14:26:32 +01:00
tpm_tss_tss2_v1.c libtpmtss: Convert RSA exponent to big-endian when provided by a TPM 2.0 2019-12-10 15:19:32 +01:00
tpm_tss_tss2_v2.c libtpmtss: Convert RSA exponent to big-endian when provided by a TPM 2.0 2019-12-10 15:19:32 +01:00