.\" Automatically generated by Pandoc 2.0.6 .\" .TH "tpm2_listpersistent" "1" "SEPTEMBER 2017" "tpm2\-tools" "General Commands Manual" .hy .SH NAME .PP \f[B]tpm2_listpersistent\f[](1) \- Display all defined persistent objects. .SH SYNOPSIS .PP \f[B]tpm2_listpersistent\f[] [\f[I]OPTIONS\f[]] \f[I]FILE\f[] .SH DESCRIPTION .PP \f[B]tpm2_listpersistent\f[](1) \- display all defined persistent objects. .SH OPTIONS .PP These options for listing the persistent objects: .IP \[bu] 2 \f[B]\-g\f[], \f[B]\[en]halg\f[]=\f[I]ALGORITHM\f[]: Only display persistent objects using this hash algorithm. Algorithms should follow the " formatting standards, see section \[lq]Algorithm Specifiers\[rq]. Also, see section \[lq]Supported Hash Algorithms\[rq] for a list of supported hash algorithms. .IP \[bu] 2 \f[B]\-G\f[], \f[B]\[en]kalg\f[]=\f[I]KEY_ALGORITHM\f[]: Only display persistent objects using this key algorithm. It accepts friendly names just like \f[B]\-g\f[] option. See section \[lq]Supported Public Object Algorithms\[rq] for a list of supported object algorithms. .SH COMMON OPTIONS .PP This collection of options are common to many programs and provide information that many users may expect. .IP \[bu] 2 \f[B]\-h\f[], \f[B]\[en]help\f[]: Display the tools manpage. This requires the manpages to be installed or on \f[I]MANPATH\f[], See man(1) for more details. .IP \[bu] 2 \f[B]\-v\f[], \f[B]\[en]version\f[]: Display version information for this tool, supported tctis and exit. .IP \[bu] 2 \f[B]\-V\f[], \f[B]\[en]verbose\f[]: Increase the information that the tool prints to the console during its execution. When using this option the file and line number are printed. .IP \[bu] 2 \f[B]\-Q\f[], \f[B]\[en]quiet\f[]: Silence normal tool output to stdout. .IP \[bu] 2 \f[B]\-Z\f[], \f[B]\[en]enable\-errata\f[]: Enable the application of errata fixups. Useful if an errata fixup needs to be applied to commands sent to the TPM. # TCTI ENVIRONMENT .PP This collection of environment variables that may be used to configure the various TCTI modules available. .PP The values passed through these variables can be overridden on a per\-command basis using the available command line options, see the \f[I]TCTI_OPTIONS\f[] section. .PP The variables respected depend on how the software was configured. .IP \[bu] 2 \f[I]TPM2TOOLS_TCTI_NAME\f[]: Select the TCTI used for communication with the next component down the TSS stack. In most configurations this will be the TPM but it could be a simulator or proxy. The current known TCTIs are: .RS 2 .IP \[bu] 2 tabrmd \- The new resource manager, called tabrmd (https://github.com/01org/tpm2-abrmd). .IP \[bu] 2 socket \- Typically used with the old resource manager, or talking directly to a simulator. .IP \[bu] 2 device \- Used when talking directly to a TPM device file. .RE .IP \[bu] 2 \f[I]TPM2TOOLS_DEVICE_FILE\f[]: When using the device TCTI, specify the TPM device file. The default is \[lq]/dev/tpm0\[rq]. .RS 2 .PP Note: Using the tpm directly requires the users to ensure that concurrent access does not occur and that they manage the tpm resources. These tasks are usually managed by a resource manager. Linux 4.12 and greater supports an in kernel resource manager at \[lq]/dev/tpmrm\f[B]\f[]\[rq], typically \[lq]/dev/tpmrm0\[rq]. .RE .IP \[bu] 2 \f[I]TPM2TOOLS_SOCKET_ADDRESS\f[]: When using the socket TCTI, specify the domain name or IP address used. The default is 127.0.0.1. .IP \[bu] 2 \f[I]TPM2TOOLS_SOCKET_PORT\f[]: When using the socket TCTI, specify the port number used. The default is 2321. .SH TCTI OPTIONS .PP This collection of options are used to configure the varous TCTI modules available. They override any environment variables. .IP \[bu] 2 \f[B]\-T\f[], \f[B]\[en]tcti\f[]=\f[I]TCTI_NAME\f[]\f[B][\f[]:\f[I]TCTI_OPTIONS\f[]\f[B]]\f[]: Select the TCTI used for communication with the next component down the TSS stack. In most configurations this will be the resource manager: tabrmd (https://github.com/01org/tpm2-abrmd) Optionally, tcti specific options can appended to \f[I]TCTI_NAME\f[] by appending a \f[B]:\f[] to \f[I]TCTI_NAME\f[]. .RS 2 .IP \[bu] 2 For the device TCTI, the TPM device file for use by the device TCTI can be specified. The default is /dev/tpm0. Example: \f[B]\-T device:/dev/tpm0\f[] .IP \[bu] 2 For the socket TCTI, the domain name or IP address and port number used by the socket can be specified. The default are 127.0.0.1 and 2321. Example: \f[B]\-T socket:127.0.0.1:2321\f[] .IP \[bu] 2 For the abrmd TCTI, it takes no options. Example: \f[B]\-T abrmd\f[] .RE .SH Supported Hash Algorithms .PP Supported hash algorithms are: .IP \[bu] 2 \f[B]0x4\f[] or \f[B]sha1\f[] for \f[B]TPM_ALG_SHA1\f[] \f[B](default)\f[] .IP \[bu] 2 \f[B]0xB\f[] or \f[B]sha256\f[] for \f[B]TPM_ALG_SHA256\f[] .IP \[bu] 2 \f[B]0xC\f[] or \f[B]sha384\f[] for \f[B]TPM_ALG_SHA384\f[] .IP \[bu] 2 \f[B]0xD\f[] or \f[B]sha512\f[] for \f[B]TPM_ALG_SHA512\f[] .IP \[bu] 2 \f[B]0x12\f[] or \f[B]sm3_256\f[] for \f[B]TPM_ALG_SM3_256\f[] .PP \f[B]NOTE\f[]: Your TPM may not support all algorithms. .SH Supported Public Object Algorithms .PP Supported public object algorithms are: .IP \[bu] 2 \f[B]0x1\f[] or \f[B]rsa\f[] for \f[B]TPM_ALG_RSA\f[] (\f[B]default\f[]). .IP \[bu] 2 \f[B]0x8\f[] or \f[B]keyedhash\f[] for \f[B]TPM_ALG_KEYEDHASH\f[]. .IP \[bu] 2 \f[B]0x23\f[] or \f[B]ecc\f[] for \f[B]TPM_ALG_ECC\f[]. .IP \[bu] 2 \f[B]0x25\f[] or \f[B]symcipher\f[] for \f[B]TPM_ALG_SYMCIPHER\f[]. .PP \f[B]NOTE\f[]: Your TPM may not support all algorithms. .SH Algorithm Specfiers .PP Options that take algorithms support \[lq]nice\-names\[rq]. Nice names, like sha1 can be used in place of the raw hex for sha1: 0x4. The nice names are converted by stripping the leading \f[B]TPM_ALG_\f[] from the Algorithm Name field and converting it to lower case. For instance \f[B]TPM_ALG_SHA3_256\f[] becomes \f[B]sha3_256\f[]. .PP The algorithms can be found at: .SH EXAMPLES .IP .nf \f[C] tpm2_listpersistent tpm2_listpersistent\ \-g\ sha256\ \-G\ ecc \f[] .fi .SH RETURNS .PP 0 on success or 1 on failure. .SH BUGS .PP Github Issues (https://github.com/01org/tpm2-tools/issues) .SH HELP .PP See the Mailing List (https://lists.01.org/mailman/listinfo/tpm2)