tpm2_rc_decode(1)

πŸŽ€ NAME πŸŽ€

Okay bestie, meet tpm2_rc_decode(1) β€” yes, from the General Commands Manual β€” and her whole thing is decoding TPM2 error codes into a human readable format. She’s the friend who translates cryptic TPM feelings into actual words πŸ’–.


✨ SYNOPSIS ✨

tpm2_rc_decode [OPTIONS] [ARGUMENT]

πŸ¦‹ DESCRIPTION πŸ¦‹

tpm2_rc_decode(1) converts an RC_CODE from the TPM or TSS2 software stack into human readable errors. Literally analogous to strerror(3), but for the TPM2 stack. It’s giving β€œerror whisperer, but make it TPM” πŸ”₯.


πŸ’… OPTIONS πŸ’…

This tool takes no tool specific options. Not a drill, she’s minimal like that ✨.

  • ARGUMENT β€” the command line argument specifies the error code to be parsed. Drop that RC_CODE in and let her cook πŸ“.

🌸 References 🌸

(no references are listed here β€” the heading is just standing there looking pretty 🫢)


πŸ’– COMMON OPTIONS πŸ’–

This collection of options are common to many programs and provide information that many users may expect. Basically the group-chat regulars of the tpm2-tools universe πŸ‘‘.

  • -h, --help=[man|no-man] β€” Display the tool’s manpage. By default, it attempts to invoke the manpager for the tool, however, on failure 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 (yes, the original says β€œif” twice β€” she’s quirky πŸ’€), 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. Slay, then bye πŸ‘‹.
  • -V, --verbose β€” Increase the information that the tool prints to the console during its execution. When using this option the file and line number are printed. She’s nosy in a helpful way πŸ”.
  • -Q, --quiet β€” Silence normal tool output to stdout. Shhh bestie, she’s in her quiet era 🀫.
  • -Z, --enable-errata β€” Enable the application of errata fixups. Useful if an errata fixup needs to be applied to commands sent to the TPM. Defining the environment TPM2TOOLS_ENABLE_ERRATA is equivalent. Errata but make it fashion πŸ’….
  • -z, --pwd-session β€” Use password session instead of a HMAC session for authentication. A clear text password is passed to the TPM to authorize the action. This option can be used to avoid problems when unsalted sessions are used in OpenSSL FIPS mode. If auth values are used a salted session should be used for authentication. Security tea, sip responsibly 🍡.
  • -R, --autoflush β€” Enable autoflush for transient objects created by the command. If a parent object is loaded from a context file also the transient parent object will be flushed. Autoflush can also be activated if the environment variable TPM2TOOLS_AUTOFLUSH is is set to yes or true. information many users may expect. Yes, the bullet really ends with information many users may expect. β€” she left that little garnish there πŸ“.

🌈 EXAMPLES 🌈

tpm2_rc_decode 0x1d5
tpm:parameter(1):structure is the wrong size

Look at her go β€” decoded and cute πŸ’–.


πŸ‘‘ Returns πŸ‘‘

Tools can return any of the following codes:

  • 0 β€” Success. Periodt.
  • 1 β€” General non-specific error.
  • 2 β€” Options handling error.
  • 3 β€” Authentication error.
  • 4 β€” TCTI related error.
  • 5 β€” Non supported scheme. Applicable to tpm2_testparams.

πŸ› BUGS πŸ›

Github Issues. That’s it, that’s the section. She’s succinct πŸ’€.


πŸ†˜ HELP πŸ†˜

See the Mailing List.


πŸ“œ License πŸ“œ

This work is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).


Cute sign-off: source/version vibes from the footer are tpm2-tools, the manual page name is tpm2_rc_decode(1), and there’s no date printed in this footer β€” so she’s timeless, bestie πŸ§šβœ¨πŸ’œ.

πŸ“¦ where this page comes from