POLICYMAKERPCR(1)
π 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 getsha1,sha256, orsha384, and if you don't say anything it just goes withsha256. Lowkey iconic of it.-bm pcr byte mask in hex, big endianβ the PCR byte mask, written in hex, big endian.- e.g.
010000selects PCR 16, e.g.ffffffselects all 24 PCRs. See? So much range. π₯
- e.g.
-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,24max.- 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 tostdout, 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, defaultsha256.-bm pcr byte mask in hex, big endianβ the PCR byte mask, hex, big endian.- e.g.
010000selects PCR 16, e.g.ffffffselects all 24 PCRs.
- e.g.
-if input file - PCR values, hex ascii, one per line, 24 maxβ the input file of PCR values, hex ascii, one per line,24max.- Required unless pcr mask is
0.
- Required unless pcr mask is
[-of output file - policy hash in binary]β policy hash out to a file, binary.[-pr stdout - policy hash in hex ascii]β policy hash out tostdout, 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
- debian bookworm: tss2 1045-2 Β· BSD-3-Clause
- ubuntu jammy: tss2 1045-1.2build1 Β· BSD-3-Clause
- ubuntu noble: tss2 1045-2.1build2 Β· BSD-3-Clause
- ubuntu questing: tss2 1045-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms