NVWRITE(1)

πŸ“¦
version 1045 Β· 3 versions
, in debian bookworm, ubuntu jammy, ubuntu noble, ubuntu questing

πŸ‘‘ NVWRITE β€” like, the manual page, bestie

okay so this is the manual page for nvwrite, and it lives in the User Commands section of the manual (that's the (1) bit, iykyk). It's a whole little program and it's out here doing the absolute most. Let's get into it πŸ’…


✨ NAME ✨

nvwrite β€” Runs TPM2_NV_Write

that's it. that's the name section. short, sweet, iconic. πŸŽ€


🌸 DESCRIPTION 🌸

First things first, and this is a real quote so brace yourself: --version-string=v1045 is not a valid option. Noted. Logged. Respectfully, no. πŸ’€

Now. nvwrite β€” Runs TPM2_NV_Write.

And here's the whole usage vibe, exactly as it comes:

       nvwrite

       Runs TPM2_NV_Write

              [-hia hierarchy authorization (o, p)(default index
              authorization)] -ha NV index handle -pwdn password for NV index
              (default empty) [-ic data string] [-if data file] [-id data
              values, pinPass and pinLimit (4 bytes each)]

              if none is specified, a 0 byte write occurs -id is normally used
              for pin pass or pin fail indexes

so let's break those flags down one by one, no skipping, we're being thorough girlies today 🫢

  • -hia β€” hierarchy authorization, and it takes (o, p), with the default being index authorization
  • -ha β€” the NV index handle. this one is not optional, it's giving required main character energy πŸ‘‘
  • -pwdn β€” password for the NV index, and the default is empty
  • -ic β€” data string (optional)
  • -if β€” data file (optional)
  • -id β€” data values, pinPass and pinLimit, and each of those is 4 bytes (optional)

and a very important lil note, so listen up: if none of those is specified, a 0 byte write occurs. Also, -id is normally used for pin pass or pin fail indexes. that's the whole lore. 🌈

Then there's this:

       -off offset (default 0)
  • -off β€” offset, and the default is 0 ⭐

and then sessions:

       -se[0-2] session handle / attributes (default PWAP)
  • -se[0-2] β€” session handle / attributes, default is PWAP
    • 01 β€” continue

okay bestie, and now for the plot twist: the page literally says all of that again. same block, twice, back to back. i am not making this up, i am not editorialising, i am simply reporting the facts πŸ™ˆ

So here it is, the second round, verbatim energy:

--version is not a valid option. again. still not valid. the audacity. πŸ’€

nvwrite β€” Runs TPM2_NV_Write.

       nvwrite

       Runs TPM2_NV_Write

              [-hia hierarchy authorization (o, p)(default index
              authorization)] -ha NV index handle -pwdn password for NV index
              (default empty) [-ic data string] [-if data file] [-id data
              values, pinPass and pinLimit (4 bytes each)]

              if none is specified, a 0 byte write occurs -id is normally used
              for pin pass or pin fail indexes

and the flags, one more time, because repetition is a love language apparently:

  • -hia β€” hierarchy authorization, (o, p), default is index authorization
  • -ha β€” NV index handle
  • -pwdn β€” password for NV index, default empty
  • -ic β€” data string
  • -if β€” data file
  • -id β€” data values, pinPass and pinLimit, 4 bytes each
reminder, since the page is reminding us: if none of them is specified, a 0 byte write occurs. and -id is normally used for pin pass or pin fail indexes. πŸ“
       -off offset (default 0)
  • -off β€” offset, default 0
       -se[0-2] session handle / attributes (default PWAP)
  • -se[0-2] β€” session handle / attributes, default PWAP
    • 01 β€” continue

periodt. that's the section. πŸ’–


πŸ¦‹ SEE ALSO πŸ¦‹

The full documentation for nvwrite is maintained as a Texinfo manual. So if the info and nvwrite programs are properly installed at your site, then this command:

       info nvwrite

should give you access to the complete manual. go get your full docs, you deserve them 🧚✨


and that's the whole page, bestie β€” this manual came from nvwrite, dated July 2017, and it's filed under NVWRITE(1) in the User Commands manual. mwah, go write some NV. πŸ’œ

πŸ“¦ where this page comes from