Tpm_nvdefine
tpm_nvdefine [\s-1OPTIONS\s0]
tpm_nvdefine defines a new \s-1NVRAM\s0 area at the given index and of given size. The user has to provide the permissions that control access to the \s-1NVRAM\s0 area.
Owner authentication is necessary once the \s-1NVRAM\s0 area 0xFFFFFFFF has been defined. The owner password may be provided on the command line using the owner password option.
The following options are supported:
Display command usage info.
Display command version info.
Set logging level.
Use \s-1TSS\s0 \s-1UNICODE\s0 encoding for passwords to comply with applications using \s-1TSS\s0 popup boxes
Use a secret of all zeros (20 bytes of zeros) as the owner's secret.
Use a secret of all zeros (20 bytes of zeros) as the \s-1NVRAM\s0 area's secret.
The owner password. A password may be directly provided for example by using '--pwdo=password' or '-opassword'. If no password is provided with this option then the program will prompt the user for the password.
The \s-1NVRAM\s0 area password. A password may be directly provided for example by using '--pwda=password' or '-apassword'. If no password is provided with this option then the program will prompt the user for the password.
The index of the \s-1NVRAM\s0 area. The parameter must either be a decimal number or a hexadecimal number starting with '0x'. To select the \s-1NVRAM\s0 area with index 0x100, the command line parameter should be '-i 0x100' or '--index 0x100'.
The size of the \s-1NVRAM\s0 area. The parameter must either be a decimal number or a hexadecimal number starting with '0x'.
The access permissions associated with the \s-1NVRAM\s0 area. The parameter must either be a decimal number or a hexadecimal number staring with '0x'. It is possible to logically 'or' numbers or strings. The following strings are supported:
Reading requires \s-1NVRAM\s0 area authorization.
Writing requires \s-1NVRAM\s0 area authorization.
Reading requires physical presence.
Writing requires physical presence.
Reading requires owner authorization.
Writing requires owner authorization.
A write to index 0 locks the \s-1NVRAM\s0 area until the next TPM_Startup(\s-1ST_CLEAR\s0)
A read with size 0 on the same index prevents further reading until the next TPM_Startup(\s-1ST_CLEAR\s0)
A write with size 0 to the same index prevents further writing until the next TPM_Startup(\s-1ST_CLEAR\s0)
A write with size 0 to the same index locks the \s-1NVRAM\s0 area permanently
The value must be written in a single operation
An example of a permission parameter is: --permissions=\*(L"OWNERREAD|OWNERWRITE\*(R"
Report bugs to <[email protected]>