tpm2_nvwrite(8)

NAME
tpm2_nvwrite - write content from a file to a specified index, if any passwd option is missing, assume NULL.

SYNOPSIS
tpm2_nvwrite[ COMMON OPTIONS ] [ TCTI OPTIONS ] [ --index|--authHandle|--handlePasswd|--file|--passwdInHex| ]

write content from a file to a specified index, if any passwd option is missing, assume NULL.

DESCRIPTION
tpm2_nvwrite write content from a file to a specified index, if any passwd option is missing, assume NULL.

OPTIONS

-x ,--index
    specifies the index of the NV area.

-a ,--authHandle
    specifies the handle used to authorize: 0x40000001 (TPM_RH_OWNER) 0x4000000C (TPM_RH_PLATFORM) {NV_INDEX_FIRST:NV_INDEX_LAST}

-P ,--handlePasswd
    specifies the password of authHandle.

-f ,--file
    specifies the nv data file.

-X ,--passwdInHex
    passwords given by any options are hex format @COMMON_OPTIONS_INCLUDE@ @TCTI_OPTIONS_INCLUDE@

ENVIRONMENT@TCTI_ENVIRONMENT_INCLUDE@

EXAMPLES
tpm2_nvwrite

    tpm2_nvwrite -x 0x1500016 -a 0x40000001 -P passwd -f nv.data
    tpm2_nvwrite -x 0x1500016 -a 0x40000001 -P 1a1b1c -X -f nv.data