tpm2sh 0.20.0
Now all internals are fully zerocopy and casting based instead of being marshaled/unmarshaled.
$ tpm2sh --help
Usage: tpm2sh [-d <device>] [-A <auth...>] [-V] <command> [<args>]
TPM 2.0 command-line interface
Options:
-d, --device device file
-A, --auth list of authentication values in the format '<handle>:<hex
string>'
-V, --version print version information
-h, --help, help display usage information
Commands:
algorithm Lists available algorithms supported by the chip.
create Creates a secondary key or a sealed data object.
create-primary Creates a new primary key in a specified hierarchy.
delete Deletes active and cached objects.
evict Create persistent object from transient object.
import Import external keys to TPM keys.
load Loads a PEM or DER TPMKey file to cache.
memory Lists active TPM objects or inspects a single handle.
pcr-event Extends a PCR with an event.
return-code Prints a TPM return code in human-readable format.
reset-lock Resets the dictionary attack lockout counter.
seal Creates a sealed data object (passive KeyedHash).
unseal Retrieves data from a sealed data object.