tpm2_getsessionauditdigest(1) General Commands Manual (NAME) tpm2_getsessionauditdigest(1) - TPM. (SYNOPSIS) tpm2_getsessionauditdigest [OPTIONS] (DESCRIPTION) tpm2_getsessionauditdigest(1) (attestation) TPM . . tpm2_startauthsession . (OPTIONS) o -P, --hierarchy-auth=AUTH: (authorization) (endorsement) . o -c, --key-context=OBJECT: (context object) . o -p, --auth=AUTH: -c . o -q, --qualification=HEX_STRING_OR_PATH: (quote) . (nonce) (replay attacks) . o -s, --signature=FILE: -f . o -m, --message=FILE: (quote) TPM . . o -f, --format=FORMAT: . o -g, --hash-algorithm: . sha256 . o --scheme=ALGORITHM: . . " " " " . " " . . . o -S, --session=FILE: . (REFERENCES) (Context Object Format) (handle) : o (transient) TPM . o : o owner: (owner hierarchy) o platform: (platform hierarchy) o endorsement: (endorsement hierarchy) o lockout: (lockout control persistent object) o 0x81010013 . (Authorization Formatting) TPM2.0 : . (Password) . HMAC . (Sessions) : " ". auth HMAC . . . HMAC ( tpm2_startauthsession(1) ). (Passwords) . : . (String) "str:" ( ) . (Examples) foobar str:foobar (Hex-string) "hex:" . (Example) hex:1122334455667788 (File) "file:" "-" (stdin). . (Examples) # : file:- # : file:path/to/password/file # echo stdin: echo foobar | tpm2_tool -p file:- # here-string stdin: tpm2_tool -p file:- <<< foobar (Sessions) (policy session) session . tpm2_startauthsession(1) . auth ( policy password) + . (Examples) session.ctx: session:session.ctx session.ctx auth mypassword: session:session.ctx+mypassword session.ctx auth 0x11223344: session:session.ctx+hex:11223344 PCR (PCR Authorizations) "pcr:" (minilanguage) PCR PCR . PCR : = PCR " PCR" . raw-pcr-file PCR tpm2_pcrread(1) . PCR (Examples) PCR sha256 : pcr:sha256:0,1,2,3 AUTH. (Signature Format Specifiers) . tss () (binary blob) TPM 2.0 . plain . (FORMAT). (COMMON OPTIONS) . o -h, --help=[man|no-man]: (manpage) . (manpager) . "man" "man" man stderr . "no-man" stdout . MANPATH man(1) . o -v, --version: TCTI . o -V, --verbose: . . o -Q, --quiet: stdout. o -Z, --enable-errata: (errata fixups). TPM . TPM2TOOLS_ENABLE_ERRATA . o -z, --pwd-session: HMAC . TPM . (unsalted) OpenSSL FIPS . auth (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 (device) TPM TCTI . /dev/tpm0 . : -T device:/dev/tpm0 export TPM2TOOLS_TCTI="device:/dev/tpm0" o mssim: TCTI mssim IP (port) . 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 . TCTI . (EXAMPLES) tpm2_createprimary -Q -C e -c prim.ctx tpm2_create -Q -C prim.ctx -c signing_key.ctx -u signing_key.pub \ -r signing_key.priv tpm2_startauthsession -S session.ctx --audit-session tpm2_getrandom 8 -S session.ctx tpm2_getsessionauditdigest -c signing_key.ctx -m att.data -s att.sig \ -S session.ctx (RETURNS) : o 0 - . o 1 - . o 2 - . o 3 - . o 4 - TCTI. o 5 - . tpm2_testparams. (BUGS) (Github Issues) (HELP) (Mailing List) (LICENSE) Creative Commons Attribution 4.0 International License (CC BY 4.0) . tpm2-tools tpm2_getsessionauditdigest(1)