Esys_Shutdown(3)
π NAME π
okay bestie so welcome to the Library Functions Manual page for Esys_Shutdown β it's literally the ESAPI function for the TPM2_Shutdown command. that's the whole vibe. one function family, one job: tell the TPM to shut down. slay. π
β¨ SYNOPSIS β¨
π¦ Functions π¦
TSS2_RC Esys_Shutdown_Async (ESYS_CONTEXT *esysContext, ESYS_TR
shandle1, ESYS_TR shandle2, ESYS_TR shandle3, TPM2_SU shutdownType)
TSS2_RC Esys_Shutdown (ESYS_CONTEXT *esysContext, ESYS_TR shandle1,
ESYS_TR shandle2, ESYS_TR shandle3, TPM2_SU shutdownType)
TSS2_RC Esys_Shutdown_Finish (ESYS_CONTEXT *esysContext)
like, three functions. that's the whole cast. main character energy fr fr. π
π Detailed Description π
ESAPI function to invoke the TPM2_Shutdown command, either as a one-call or in an asynchronous manner. two lanes, same destination, pick your fighter. π«Ά
π Function Documentation π
π TSS2_RC Esys_Shutdown (ESYS_CONTEXT * esysContext, ESYS_TR shandle1, ESYS_TR shandle2, ESYS_TR shandle3, TPM2_SU shutdownType) π
One-Call function for TPM2_Shutdown
so this one invokes the TPM2_Shutdown command in a one-call variant. meaning: the function will block until the TPM response is available. yes girl, it waits. it's not ghosting you, it's just committed. π
All input parameters are const. The memory for non-simple output parameters is allocated by the function implementation β you don't have to do a thing, it handles it. iconic behaviour honestly.
π Parameters
esysContextβ TheESYS_CONTEXT.shandle1β First session handle.shandle2β Second session handle.shandle3β Third session handle.shutdownTypeβTPM2_SU_CLEARorTPM2_SU_STATE. that's the whole menu, pick one. π
π₯ Return values
TSS2_RC_SUCCESSβ if the function call was a success. we love a win.TSS2_ESYS_RC_BAD_REFERENCEβ if theesysContextor required input pointers or required output handle references areNULL.TSS2_ESYS_RC_BAD_CONTEXTβ ifesysContextcorruption is detected. π©TSS2_ESYS_RC_MEMORYβ if the ESAPI cannot allocate enough memory for internal operations or return parameters.TSS2_ESYS_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pending. one thing at a time bestie!!TSS2_ESYS_RC_INSUFFICIENT_RESPONSEβ if the TPM's response does not at least contain the tag, response length, and response code.TSS2_ESYS_RC_MALFORMED_RESPONSEβ if the TPM's response is corrupted. πTSS2_ESYS_RC_RSP_AUTH_FAILEDβ if the response HMAC from the TPM did not verify.TSS2_ESYS_RC_MULTIPLE_DECRYPT_SESSIONSβ if more than one session has the 'decrypt' attribute bit set.TSS2_ESYS_RC_MULTIPLE_ENCRYPT_SESSIONSβ if more than one session has the 'encrypt' attribute bit set.TSS2_ESYS_RC_NO_DECRYPT_PARAMβ if one of the sessions has the 'decrypt' attribute set and the command does not support encryption of the first command parameter.TSS2_ESYS_RC_NO_ENCRYPT_PARAMβ if one of the sessions has the 'encrypt' attribute set and the command does not support encryption of the first response parameter.TSS2_RCs produced by lower layers of the software stack β may be returned to the caller unaltered unless handled internally. (them's the rules, no cap.)
π§ TSS2_RC Esys_Shutdown_Async (ESYS_CONTEXT * esysContext, ESYS_TR shandle1, ESYS_TR shandle2, ESYS_TR shandle3, TPM2_SU shutdownType) π§
Asynchronous function for TPM2_Shutdown
the async variant, obviously. it invokes the TPM2_Shutdown command in a asynchronous variant. this means the function will return as soon as the command has been sent downwards the stack to the TPM. no waiting, no lingering β she sends the text and leaves the chat. π¨
All input parameters are const. In order to retrieve the TPM's response call Esys_Shutdown_Finish. that's the callback, that's the "hey so what did they say" moment.
π Parameters
esysContextβ TheESYS_CONTEXT.shandle1β First session handle.shandle2β Second session handle.shandle3β Third session handle.shutdownTypeβTPM2_SU_CLEARorTPM2_SU_STATE. same two options, still no third one. π
π₯ Return values
ESYS_RC_SUCCESSβ if the function call was a success.TSS2_ESYS_RC_BAD_REFERENCEβ if theesysContextor required input pointers or required output handle references areNULL.TSS2_ESYS_RC_BAD_CONTEXTβ ifesysContextcorruption is detected.TSS2_ESYS_RC_MEMORYβ if the ESAPI cannot allocate enough memory for internal operations or return parameters.TSS2_RCs produced by lower layers of the software stack β may be returned to the caller unaltered unless handled internally.TSS2_ESYS_RC_MULTIPLE_DECRYPT_SESSIONSβ if more than one session has the 'decrypt' attribute bit set.TSS2_ESYS_RC_MULTIPLE_ENCRYPT_SESSIONSβ if more than one session has the 'encrypt' attribute bit set.TSS2_ESYS_RC_NO_DECRYPT_PARAMβ if one of the sessions has the 'decrypt' attribute set and the command does not support encryption of the first command parameter.TSS2_ESYS_RC_NO_ENCRYPT_PARAMβ if one of the sessions has the 'encrypt' attribute set and the command does not support encryption of the first response parameter.
πΈ TSS2_RC Esys_Shutdown_Finish (ESYS_CONTEXT * esysContext) πΈ
Asynchronous finish function for TPM2_Shutdown
the finish line bestie!! π this function returns the results of a TPM2_Shutdown command invoked via Esys_Shutdown_Finish. (yes, that's what the page says β reading it exactly as written, character for character, we don't editorialize here π
)
All non-simple output parameters are allocated by the function's implementation. NULL can be passed for every output parameter if the value is not required β so like, if you don't want it, you don't have to take it. lowkey thoughtful.
π Parameters
esysContextβ TheESYS_CONTEXT.
π₯ Return values
TSS2_RC_SUCCESSβ on success.ESYS_RC_SUCCESSβ if the function call was a success.TSS2_ESYS_RC_BAD_REFERENCEβ if theesysContextor required input pointers or required output handle references areNULL.TSS2_ESYS_RC_BAD_CONTEXTβ ifesysContextcorruption is detected.TSS2_ESYS_RC_MEMORYβ if the ESAPI cannot allocate enough memory for internal operations or return parameters.TSS2_ESYS_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pending.TSS2_ESYS_RC_TRY_AGAINβ if the timeout counter expires before the TPM response is received. β° she's not ignoring you, she's just slow.TSS2_ESYS_RC_INSUFFICIENT_RESPONSEβ if the TPM's response does not at least contain the tag, response length, and response code.TSS2_ESYS_RC_RSP_AUTH_FAILEDβ if the response HMAC from the TPM did not verify.TSS2_ESYS_RC_MALFORMED_RESPONSEβ if the TPM's response is corrupted.TSS2_RCs produced by lower layers of the software stack β may be returned to the caller unaltered unless handled internally.
π Author π
Generated automatically by Doxygen for tpm2-tss from the source code. not a human, just a robot doing its little thing. we respect the hustle. π€β¨
okay that's the whole page bestie, go shut down that TPM responsibly. mwah! π«Άπ
β with love, from tpm2-tss, Version 4.1.5, and this Esys_Shutdown(3) page right here. see you in the next manpage, bye!! π¦π
π¦ where this page comes from
- fedora 44: tpm2-tss-devel 4.1.5-1.fc44 Β· BSD-2-Clause
- fedora 44: tpm2-tss-devel 4.1.5-1.fc44 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms