libtpms/src
Stefan Berger a3a1cd0522 tpm2: Fix public key context save due to ANY_OBJECT_Marshal usage
This patch fixes a VM suspend/resume issue when externally loaded public
keys are involved.

This patch addresses the bug reported in issue #195 where the saving of
an externally loaded public key's context doesn't work due to the usage of
ANY_CONTEXT_SAVE for saving key contexts. This patch fixes the issue by
creating local versions of TPM_SENSITIVE_Marshal/_Unmarshal that deals
with the case where sensitiveType is not a type of private key but a
public key instead that basically doesn't have much information in
TPM_SENSITIVE but is all zeros instead.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2021-02-26 18:06:33 -05:00
..
tpm2 tpm2: Fix public key context save due to ANY_OBJECT_Marshal usage 2021-02-26 18:06:33 -05:00
tpm12 tpm12: Use TPM_PrintFourLimit where <= 4 bytes may exist 2021-02-26 18:06:33 -05:00
compiler.h library: use __attribute__((format,...) to check printf format and args 2018-06-15 18:07:49 -04:00
libtpms.syms Integrate the TPM 2 into the library; do not compile with TPM 2 yet 2018-06-15 18:07:47 -04:00
Makefile.am build-sys: Add support for --enable-test-coverage to configure 2019-01-09 11:51:41 -05:00
test.syms build-sys: work around broken linker when testing --version-script support 2018-08-30 21:45:16 +00:00
tpm_library_conf.h Initial import of project 2013-10-31 15:33:22 -05:00
tpm_library_intern.h tpm2: Log command that put TPM 2 into failure mode 2018-12-10 09:17:25 -05:00
tpm_library.c tpm2: Log command that put TPM 2 into failure mode 2018-12-10 09:17:25 -05:00
tpm_tpm2_interface.c tpm2: Propagate error from CryptRandStartup() and report error info 2019-01-03 13:15:44 -05:00
tpm_tpm2_tis.c tpm2: Introduce TPM_HAVE_TPM2_DECLARATIONS to avoid re-declarations 2018-10-05 21:47:15 -04:00
tpm_tpm12_interface.c tpm2: Introduce TPM_HAVE_TPM2_DECLARATIONS to avoid re-declarations 2018-10-05 21:47:15 -04:00
tpm_tpm12_tis.c Introduce internal interface to reach TPM functionality 2015-12-08 09:07:54 -05:00