% tpm2_nvreadpublic(1) tpm2-tools | General Commands Manual

NAME

tpm2_nvreadpublic(1) - Display all defined Non-Volatile (NV)s indices.

SYNOPSIS

tpm2_nvreadpublic [OPTIONS]

DESCRIPTION

tpm2_nvreadpublic(1) - Display all defined Non-Volatile (NV)s indices to stdout in a YAML format.

Display metadata for all defined NV indices. Metadata includes:

  • The size of the defined region.
  • The hash algorithm used to compute the name of the index.
  • The auth policy.
  • The NV attributes as defined in section "NV Attributes".

Example Output

``` 0x1500015: hash algorithm: friendly: sha256 value: 0xB attributes: friendly: ownerwrite|ownerread value: 0x2000200 size: 32 authorization policy:

0x1500017: hash algorithm: friendly: sha256 value: 0xB attributes: friendly: ownerwrite|ownerread value: 0x2000200 size: 32 authorization policy: ```

OPTIONS

  • --cphash=FILE

    File path to record the hash of the command parameters. This is commonly termed as cpHash. NOTE: When this option is selected, The tool will not actually execute the command, it simply returns a cpHash unless rphash is also required.

  • --rphash=FILE

    File path to record the hash of the response parameters. This is commonly termed as rpHash.

  • -S, --session=POLICY_SESSION:

    Specify an auxiliary session for auditing and or encryption/decryption of the parameters.

  • -n, --name=FILE:

    The name of the NV index that must be provided when only calculating the cpHash without actually dispatching the command to the TPM.

common options

common tcti options

nv attributes

EXAMPLES

List the defined NV indices to stdout

tpm2_nvreadpublic

returns

footer