mirror of
https://github.com/stefanberger/libtpms
synced 2025-12-30 18:31:53 +00:00
Save key and hash contexts using the ANY_OBJECT_Marshal function and try to load it using ANY_OBJECT_Unmarshal(). Unfortunately older contexts were written out as plain OBJECTs, so we have to accomodate this case as well so that we can restore key contexts from libtpms-0.7.x. We do not support resuming HASH contexts from libtpms-0.7.x. Before this modification context files written out by the IBM TSS stack were 2692 bytes independent of content. Now an RSA 2048 key is 1222 bytes and a NIST p384 key is 982 bytes. Several of the original TPM 2 function exporting Sequence state and importing it can now be disabled. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> |
||
|---|---|---|
| .. | ||
| tpm2 | ||
| tpm12 | ||
| compiler.h | ||
| libtpms.syms | ||
| Makefile.am | ||
| test.syms | ||
| tpm_library_conf.h | ||
| tpm_library_intern.h | ||
| tpm_library.c | ||
| tpm_tpm2_interface.c | ||
| tpm_tpm2_tis.c | ||
| tpm_tpm12_interface.c | ||
| tpm_tpm12_tis.c | ||