mirror of
https://github.com/stefanberger/libtpms
synced 2025-12-28 07:43:10 +00:00
Sync with upstream to fix issue in CryptParameterEncryption() from TPM 2 errate v1.4 2.6.1: "The functions CryptParameterEncryption() and CryptParameterDecryption() in the reference code in Part 4, 10.2.6.6.5 and 10.2.6.6.6 do not correctly check the size of the parameter buffer to be encrypted or decrypted. To fix the issue, the functions should be corrected to check that the parameter buffer (a TPM2B type field) is at least 2 bytes in length and should use the function UINT16_Unmarshal() to read the size of the buffer instead of" BYTE_ARRAY_TO_UINT16(). [...] The fixed CryptParameterEncryption() function will enter failure mode and return TPM_RC_FAILURE if the internal response buffer does not contain enough data for the UINT16 size field." Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> |
||
|---|---|---|
| .. | ||
| tpm2 | ||
| tpm12 | ||
| compiler.h | ||
| disabled_interface.c | ||
| libtpms.syms | ||
| Makefile.am | ||
| test.syms | ||
| tpm_debug.c | ||
| tpm_debug.h | ||
| tpm_library_conf.h | ||
| tpm_library_intern.h | ||
| tpm_library.c | ||
| tpm_memory.c | ||
| tpm_nvfile.c | ||
| tpm_nvfile.h | ||
| tpm_tpm2_interface.c | ||
| tpm_tpm2_tis.c | ||
| tpm_tpm12_interface.c | ||
| tpm_tpm12_tis.c | ||