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 thatRC_CODEin 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 themanoption argument is specified; however, if explicitmanis requested, the tool will provide errors frommanon stderr. If theno-manoption 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 onMANPATH, Seeman(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 environmentTPM2TOOLS_ENABLE_ERRATAis equivalent. Errata but make it fashion π .-z,--pwd-sessionβ Use password session instead of aHMACsession 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 variableTPM2TOOLS_AUTOFLUSHis is set toyesortrue. information many users may expect. Yes, the bullet really ends withinformation 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 totpm2_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
- arch rolling: tpm2-tools 5.8-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms