tpm2_pcrallocate(1) General Commands Manual tpm2_pcrallocate(1) (NAME) tpm2_pcrallocate - PCR (SYNOPSIS) tpm2_pcrallocate [OPTIONS] [*ARGUMENT] (DESCRIPTION) tpm2_pcrallocate(1) - PCR TPM . PCR . PCR . . SHA1 SHA256 PCR . PCR . PCR " PCR (PCR Bank Specifiers)" . . : (platform authorization) . (OPTIONS) o -P --auth=AUTH: . " " " (Authorization Formatting)" . o ARGUMENT PCR . o --cphash=FILE . cpHash . : cpHash . (References) (Context Object Format) (handle) : o 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) : " (EMPTY PASSWORD) ". auth HMAC . . . HMAC ( tpm2_startauthsession(1)). (Passwords) . : . (String) "str:" ( ) . (Examples) foobar str:foobar (Hex-string) "hex:" . (Example) hex:1122334455667788 (File) "file:" "-" (stdin) . . (Examples) # stdin : file:- # : file:path/to/password/file # stdin echo: echo foobar | tpm2_tool -p file:- # bash here-string stdin: tpm2_tool -p file:- <<< foobar (Sessions) session . tpm2_startauthsession(1) . auth ( ) + (Passwords) . (Examples) session.ctx: session:session.ctx session.ctx auth mypassword: session:session.ctx+mypassword session.ctx auth HEX 0x11223344: session:session.ctx+hex:11223344 PCR (PCR Authorizations) PCR "pcr:" PCR . PCR : = PCR " PCR (PCR Bank Specifiers)" . raw-pcr-file PCR tpm2_pcrread(1) . PCR (Examples) PCR sha256 : pcr:sha256:0,1,2,3 AUTH. (Algorithm Specifiers) " (nice-names)" . : . TPM . (Simple specifiers) . . " " . (Asymmetric) o rsa o ecc (Symmetric) o aes o camellia o sm4 (Hashing Algorithms) o sha1 o sha256 o sha384 o sha512 o sm3_256 o sha3_256 o sha3_384 o sha3_512 (Keyed Hash) o hmac o xor (Signing Schemes) o rsassa o rsapss o ecdsa o ecdaa o ecschnorr o sm2 (Asymmetric Encryption Schemes) o oaep o rsaes o ecdh (Modes) o ctr o ofb o cbc o cfb o ecb (Misc) o null (Complex Specifiers) TPM . : :: (Type Specifiers) . . o aes - AES: aes128. o aes128 - AES (ctr|ofb|cbc|cfb|ecb). null . o aes192 - aes128 . o aes256 - aes128 . o sm4 - SM4: sm4128. o sm4128 sm4_128 - SM4 (ctr|ofb|cbc|cfb|ecb). null . o ecc - ecc256. o ecc192 ecc_nist_p192 - NIST ECC. o ecc224 ecc_nist_p224 - NIST ECC. o ecc256 ecc_nist_p256 - NIST ECC. o ecc384 ecc_nist_p384 - NIST ECC. o ecc521 ecc_nist_p521 - NIST ECC. o ecc_sm2 ecc_sm2_p256 - SM2. o rsa - RSA: rsa2048. o rsa1024 - RSA . o rsa2048 - RSA . o rsa3072 - RSA . o rsa4096 - RSA . (Scheme Specifiers) . (Signing Schemes) (Asymmetric Encryption Schemes) . . sha256 . . (Hash Optional Scheme Specifiers) : oaep-sha256. o oaep o ecdh o rsassa o rsapss o ecdsa o ecschnorr o sm2 (Multiple Option Scheme Specifiers) ( UINT16) (-) . * ecdaa ecdaa4-sha256. . (No Option Scheme Specifiers) . * rsaes (Symmetric Details Specifiers) (type) . . aes128cfb . (Examples) rsa2048 rsaes tpm2_create -C parent.ctx -G rsa2048:rsaes -u key.pub -r key.priv ecc256 ecdaa sha384 /tpm2_create -C parent.ctx -G ecc256:ecdaa4-sha384 -u key.pub -r key.priv ALGORITHM. (Object Attributes) (Object Attributes) . " (nice-names)" . TPM2.0 : TPMA_OBJECT_ . TPMA_OBJECT_FIXEDTPM fixedtpm . OR "|" . TPMA_OBJECT_FIXEDTPM TPMA_OBJECT_NODA TPMA_OBJECT_SIGN_ENCRYPT : fixedtpm|noda|sign ATTRIBUTES . PCR (PCR Bank Specifiers) PCR : :[,] or :all `+' . : sha1:3,4+sha256:all SHA1 SHA256 . (forward sealing) : sha1:0,1=da39a3ee5e6b4b0d3255bfef95601890afd80709,2 PCR PCR 1 . (digest) . 0x . (Note) PCR PCR . TPM PCR . (COMMON OPTIONS) . o -h --help=[man|no-man]: . man . "man" "man" man stderr . "no-man" 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 . (clear text) 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 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'. tabrmd tcti bus_name=com.example.FooBar: \--tcti=tabrmd:bus_name=com.example.FooBar tcti (abrmd) bus_type=session: \--tcti:bus_type=session : abrmd tabrmd . (EXAMPLES) (SHA1 SHA256) tpm2_pcrallocate tpm2_pcrallocate -P abc sha1:7,8,9,10,16,17,18,19+sha256:all SHA1 SHA256 tpm2_pcrallocate -P abc sha1:none+sha256:all (RETURNS) : o 0 - . o 1 - . o 2 - . o 3 - . o 4 - TCTI. o 5 - (Non supported scheme). tpm2_testparams. (SEE ALSO) tpm2_pcrread(1) tpm2_pcrextend(1) tpm2_pcrreset(1) (BUGS) (Github Issues) (HELP) (Mailing List) (LICENSE) . (CC BY 4.0) . tpm2-tools tpm2_pcrallocate(1)