tss2_nvwrite(1)

okay so this is tss2_nvwrite(1), hanging out in the General Commands Manual section, and she is ready to write data to a β€œregular” NV index. bestie, let’s go πŸ’–βœ¨

🌸 NAME 🌸

tss2_nvwrite(1) - that’s the name entry, and yes, the original is literally the command plus a dash. minimal, iconic, we respect it πŸ’…

✨ SYNOPSIS ✨

tss2_nvwrite [OPTIONS]

πŸ¦‹ SEE ALSO πŸ¦‹

  • fapi-config(5) β€” use this to adjust Fapi parameters like the used cryptographic profile and TCTI, or directories for the Fapi metadata storages. 🫢
  • fapi-profile(5) β€” use this to determine the cryptographic algorithms and parameters for all keys and operations of a specific TPM interaction, like the name hash algorithm, the asymmetric signature algorithm, scheme and parameters, and PCR bank selection. 🌈

πŸ’œ DESCRIPTION πŸ’œ

tss2_nvwrite(1) - this command writes data to a β€œregular” (not pin, extend or counter) NV index. Only the full index can be written, partial writes are not allowed. If the provided data is smaller than the NV index’s size, then it is padded up with zero bytes at the end. zero-pad queen behavior, honestly πŸ’…

πŸŽ€ OPTIONS πŸŽ€

These are the available options:

  • -i, --data=FILENAME or - (for stdin) β€” the data to write to the NV space. πŸ’Ύ
  • -p, --nvPath=STRING β€” identifies the NV space to write to. 🎯

🫢 COMMON OPTIONS 🫢

This collection of options are common to all tss2 programs and provide information that many users may expect. iykyk:

  • -h, --help [man|no-man] β€” display the tools manpage. By default, it attempts to invoke the manpager for the tool; however, on failure it will output a short tool summary. This is the same behavior if the man option argument is specified; however, if explicit man is requested, the tool will provide errors from man on stderr. If the no-man option is specified, or the manpager fails, the short options will be output to stdout.

To successfully use the manpages feature requires the manpages to be installed or on MANPATH. See man(1) for more details. πŸ“–

  • -v, --version β€” display version information for this tool, supported tctis and exit. πŸ‘‘

πŸ“ EXAMPLE πŸ“

If you wanna see it in the wild, it’s giving:

tss2_nvwrite --nvPath=/nv/Owner/myNV --data=data.file

πŸ”₯ RETURNS πŸ”₯

0 on success or 1 on failure. that’s the whole return vibe check πŸ’€

πŸ’€ BUGS πŸ’€

Github Issues β€” that’s what the page says, bestie.

🌈 HELP 🌈

See the Mailing List β€” yep, that’s the help pointer.

πŸ‘‘ License πŸ‘‘

This work is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0). legal slay πŸŽ€


and that’s the page! source/version energy: tpm2-tools, dated APRIL 2019 πŸ’–βœ¨

πŸ“¦ where this page comes from