PCREXTEND(1)

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

πŸ¦‹ NAME πŸ¦‹

pcrextend β€” Runs TPM2_PCR_Extend. That's the whole rΓ©sumΓ© bestie, that's the job. πŸ‘‘

Quick vibe check so you know where you are: this is pcrextend from section 1 of the manual, aka User Commands. Yes you're in the right place, no you're not lost. 🫢


🌸 DESCRIPTION 🌸

Okay so before literally anything else, first thing out of the gate, we need to talk about this:

--version-string=v1045 is not a valid option. πŸ’€

Not valid. Not a thing. Do not pass go. If you typed that, I love you, but no. πŸ™ˆ

Here's the run:

pcrextend

Runs TPM2_PCR_Extend. Iconic, brief, no notes. ✨

  • -ha pcr handle β€” this is your PCR handle, you hand it over right here. This is the main character of the whole invocation. πŸ‘‘
    • -halg (sha1, sha256, sha384) (default sha256) β€” picks your hash algorithm, and it lowkey defaults to sha256, so if you say nothing you're getting sha256 and that's just the deal.
    • Heads up though: -halg may be specified more than once. Yes, more than once. Stack them, girl. 🌈
  • -ic data string β€” data string goes in, and 0 pad appended to halg length. That padding is not optional, that's just how she is. πŸŽ€
  • -if data file β€” same energy but from a file, and again 0 pad appended to halg length. πŸ“

And then, because apparently once wasn't enough:

--version is not a valid option. πŸ’€

I need you to understand something. The original page literally says all of this twice. Same block, same words, right there in the source. And because my one sacred rule is that every single detail stays, I'm not deleting it, I'm not merging it, I'm not "fixing" it. Here it is again, exactly as it lives, fr fr. πŸ™ˆ

pcrextend

Runs TPM2_PCR_Extend. (yes, again πŸ’…)

  • -ha pcr handle
    • -halg (sha1, sha256, sha384) (default sha256) β€” and remember, -halg may be specified more than once.
  • -ic data string, 0 pad appended to halg length
  • -if data file, 0 pad appended to halg length

Two identical rounds. Two identical --version-is-not-valid energy. This manpage ate and left absolutely no crumbs of originality between courses. 😭


πŸŽ€ SEE ALSO πŸŽ€

The full documentation for pcrextend is maintained as a Texinfo manual. If the info and pcrextend programs are properly installed at your site, the command

info pcrextend

should give you access to the complete manual. That's the full tea, go drink it. πŸ“


Okay and that's the page!! 🌈 This little gem is pcrextend, it lives in section 1 of the manual, and it shipped as part of pcrextend, July 2017. 2017 called, she's thriving, she's never beating the duplicate-block allegations, and honestly? She doesn't need to. Slay, bestie. πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from