tpm2_policyauthvalue(1) General Commands Manual tpm2_policyauthvalue(1) (NAME) tpm2_policyauthvalue - TPM2 (SYNOPSIS) tpm2_policyauthvalue [] (DESCRIPTION) tpm2_policyauthvalue(1) - () . (plaintext) HMAC . . ( "userwithauth" 0 ) . (OPTIONS) o -L, --policy=FILE: (compounded policy digest). o -S, --session=FILE: -S tpm2_startauthsession(1). o --cphash=FILE . cpHash . : cpHash . (References) (COMMON OPTIONS) . o -h, --help=[man|no-man]: . (manpager) . "man" "man" man (stderr) . "no-man" man (stdout) . manpages MANPATH man(1) . o -v, --version: TCTI . o -V, --verbose: . . o -Q, --quiet: (stdout). o -Z, --enable-errata: (errata fixups). errata TPM . TPM2TOOLS_ENABLE_ERRATA . o -z, --pwd-session: HMAC . (clear text) TPM . (unsalted) OpenSSL FIPS . (auth values) (salted) . o -R, --autoflush: (autoflush) . . TPM2TOOLS_AUTOFLUSH yes true . TCTI (TCTI Configuration) TCTI ( "Transmission Interface") TPM . TCTI TPM . TCTI : 1. -T --tcti 2. : TPM2TOOLS_TCTI. : . TCTI : o tabrmd - tabrmd . tabrmd abrmd tcti . o mssim - TPM . o device - TPM . o none - TPM . TPM (off-tpm) TCTI . TCTI . "none" . : : . TCTI (TCTI Defaults) TCTI TCTI dlopen(3) . TCTI tabrmd device mssim . -v TCTI . - "default-tcti" TCTI . TCTI (Custom TCTIs) TCTI TCTI . dlopen(3) tcti-name . dlopen(3) . TCTI (TCTI OPTIONS) TCTI : o device: TCTI TPM TCTI . /dev/tpm0 . : -T device:/dev/tpm0 export TPM2TOOLS_TCTI="device:/dev/tpm0" o mssim: TCTI mssim IP . 127.0.0.1 2321 . : -T mssim:host=localhost,port=2321 export TPM2TOOLS_TCTI="mssim:host=localhost,port=2321" o abrmd: TCTI abrmd - `,' . `=' . o TCTI abrmd : 1. `bus_name' : tabrmd ( ). 2. `bus_type' : dbus ( ) `session' `system'. TCTI tabrmd bus_name=com.example.FooBar: \--tcti=tabrmd:bus_name=com.example.FooBar TCTI (abrmd) bus_type=session: \--tcti:bus_type=session : abrmd tabrmd . (EXAMPLES) (plaintext) TPM . (ephemeral) tpm2_policyauthvalue(1) . tpm2_startauthsession -S session.dat tpm2_policyauthvalue -S session.dat -L policy.dat tpm2_flushcontext session.dat tpm2_createprimary -C o -c prim.ctx tpm2_create -g sha256 -G aes -u key.pub -r key.priv -C prim.ctx -L policy.dat \ -p testpswd tpm2_load -C prim.ctx -u key.pub -r key.priv -n key.name -c key.ctx echo "plaintext" > plain.txt tpm2_encryptdecrypt -c key.ctx -o encrypt.out plain.txt -p testpswd tpm2_startauthsession --policy-session -S session.dat tpm2_policyauthvalue -S session.dat tpm2_encryptdecrypt -c key.ctx -o encrypt.out -p session:session.dat+testpswd \ plain.txt tpm2_flushcontext session.dat (RETURNS) : o 0 - . o 1 - . o 2 - . o 3 - . o 4 - TCTI. o 5 - . tpm2_testparams. (LIMITATIONS) tpm2_startauthsession(1) : o o tpm2-abrmd. . (BUGS) (Github Issues) (HELP) (Mailing List) (LICENSE) 4.0 (CC BY 4.0) . tpm2-tools tpm2_policyauthvalue(1)