tpm2-software / tpm2-tss

OSS implementation of the TCG TPM2 Software Stack (TSS2)
https://tpm2-software.github.io
BSD 2-Clause "Simplified" License
749 stars 365 forks source link

TCTILDR as drop-in replacement for ESYS default algorithm #1448

Closed flihp closed 5 years ago

flihp commented 5 years ago

The existing prototype (https://github.com/flihp/tpm2-tss/tree/libtss2-tctildr) uses a very simple default TCTI selection logic: if no 'name' is provided it tries to load libtss2-tcti-default.so.0. To get it to load some other TCTI the name must be provided, in which case it will try to load a library with name first, an then libtss2-tcti-name.so.0 if name alone fails.

My initial plan was to merge the code in this state as a way to get the process started. Unfortunately there is significant duplication with the code in the esys_tcti_default module. Given the overlap in functionality and the eventual need to deconflict the defalt TCTI selection logic the current tctildr branch must be updated to use the existing code from the esys_tcti_default module including the default TCTI selection logic.

flihp commented 5 years ago

Updated as promised. Added [Get|Free]Info functions to accommodate the query interface from the tools: tpm2_tool -T name --help no-man.

flihp commented 5 years ago

NO_DL build flag & windows build still pending

flihp commented 5 years ago

1452 and #1453