POLICYMAKERPCR(1)

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

πŸŽ€ NAME πŸŽ€

policymakerpcr β€” runs the policymakerpcr utility. That's it, that's the whole name section, no notes. πŸ’…

Oh and bestie, real quick: this page hangs out in the User Commands part of the manual, so you know it's a lil command-line moment.


✨ DESCRIPTION ✨

Okay so before we even get into it, the original page wants you to know something VERY important, and it's giving "read the error message, babe":

--version-string=v1045 is not a valid option

Noted. Screenshotted. Never doing that again. πŸ’€

Now. The utility:

policymakerpcr

Creates a policyPCR term suitable for input to policymaker (hex ascii). ✨

And here's the vibe check you cannot skip: it assumes that the byte mask and PCR values are consistent. Like, it trusts you. It's not double-checking your math. So be the main character who actually got their mask right, okay? 🫢

Here's everything it takes:

  • [-halg hash algorithm (sha1 sha256 sha384) (default sha256)] β€” your hash algorithm. You get sha1, sha256, or sha384, and if you don't say anything it just goes with sha256. Lowkey iconic of it.
  • -bm pcr byte mask in hex, big endian β€” the PCR byte mask, written in hex, big endian.
    • e.g. 010000 selects PCR 16, e.g. ffffff selects all 24 PCRs. See? So much range. πŸ”₯
  • -if input file - PCR values, hex ascii, one per line, 24 max β€” points at your input file of PCR values, hex ascii, one per line, 24 max.
    • It's required unless pcr mask is 0. Like, required required. Not optional-fr-fr.
  • [-of output file - policy hash in binary] β€” writes the policy hash to a file, in binary.
  • [-pr stdout - policy hash in hex ascii] β€” sends the policy hash to stdout, in hex ascii.

πŸ¦‹ and then it says all of that AGAIN πŸ¦‹

No, bestie, you're not hallucinating, and your terminal isn't glitching. The original page literally repeats the whole block. So here it is again, exactly as it appears, because I do not gatekeep:

policymakerpcr

Creates a policyPCR term suitable for input to policymaker (hex ascii)

Assumes that the byte mask and PCR values are consistent

  • [-halg hash algorithm (sha1 sha256 sha384) (default sha256)] β€” the hash algorithm: sha1, sha256, sha384, default sha256.
  • -bm pcr byte mask in hex, big endian β€” the PCR byte mask, hex, big endian.
    • e.g. 010000 selects PCR 16, e.g. ffffff selects all 24 PCRs.
  • -if input file - PCR values, hex ascii, one per line, 24 max β€” the input file of PCR values, hex ascii, one per line, 24 max.
    • Required unless pcr mask is 0.
  • [-of output file - policy hash in binary] β€” policy hash out to a file, binary.
  • [-pr stdout - policy hash in hex ascii] β€” policy hash out to stdout, hex ascii.

And then, right at the end of that second round, one more little reality check:

--version is not a valid option

Okay. Twice warned. We move. 😭


🌈 SEE ALSO 🌈

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

info policymakerpcr

should give you access to the complete manual. Go get your full lore, queen. πŸ‘‘


That's the whole page, bestie. This was policymakerpcr, dated July 2017, and that's the tea. Stay consistent with your byte masks, mwah. πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from