Esys_PP_Commands(3)
π Esys_PP_Commands(3) β the tpm2-tss manual, but make it make sense
okay so bestie, we're in the Library Functions Manual section and this whole page is literally about one thing: the ESAPI function for the TPM2_PP_Commands command. That's it. That's the vibe. PP stands for Physical Presence and yes you're gonna need it, no cap π«Ά
β¨ SYNOPSIS β¨
here's the trio of functions, and I need you to read them exactly as written because C does not forgive:
TSS2_RC Esys_PP_Commands_Async (ESYS_CONTEXT *esysContext, ESYS_TR auth,
ESYS_TR shandle1, ESYS_TR shandle2, ESYS_TR shandle3, const TPML_CC
*setList, const TPML_CC *clearList)
TSS2_RC Esys_PP_Commands (ESYS_CONTEXT *esysContext, ESYS_TR auth,
ESYS_TR shandle1, ESYS_TR shandle2, ESYS_TR shandle3, const TPML_CC
*setList, const TPML_CC *clearList)
TSS2_RC Esys_PP_Commands_Finish (ESYS_CONTEXT *esysContext)
like, look at them. one-call, async, finish. the holy trinity of "please talk to the TPM for me" πΈ
π¦ Detailed Description π¦
so what is this? it's the ESAPI function to invoke the TPM2_PP_Commands command β and you can run it either as a one-call or in an asynchronous manner. that's the whole deal. pick your fighter π
π Function Documentation π
π TSS2_RC Esys_PP_Commands (ESYS_CONTEXT * esysContext, ESYS_TR auth, ESYS_TR shandle1, ESYS_TR shandle2, ESYS_TR shandle3, const TPML_CC * setList, const TPML_CC * clearList)
One-Call function for TPM2_PP_Commands β this is the "just do it and wait" version, bestie. it invokes the TPM2_PP_Commands command in a one-call variant, which means the function will block until the TPM response is available. yes, block. sit there. be patient. π
all input parameters are const (so nobody's sneaking changes in behind your back), and the memory for non-simple output parameters is allocated by the function implementation. iykyk π§
Parameters
esysContextβ TheESYS_CONTEXT. your whole world, basically.authβTPM2_RH_PLATFORM+TPM2_PP. that's the combo, don't get cute with it.shandle1β Session handle for authorization ofauth.shandle2β Second session handle.shandle3β Third session handle.setListβ List of commands to be added to those that will require that Physical Presence be asserted. π₯clearListβ List of commands that will no longer require that Physical Presence be asserted. bye felicia π
Return values
TSS2_RC_SUCCESSβ if the function call was a success. slay.TSS2_ESYS_RC_BAD_REFERENCEβ if theesysContextor required input pointers or required output handle references areNULL. check your pointers bestie π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 at a time, please π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_BAD_TRβ if any of theESYS_TRobjects are unknown to theESYS_CONTEXTor are of the wrong type, or if requiredESYS_TRobjects areESYS_TR_NONE.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. so like, don't be surprised if you get a random one, it's allowed π
π TSS2_RC Esys_PP_Commands_Async (ESYS_CONTEXT * esysContext, ESYS_TR auth, ESYS_TR shandle1, ESYS_TR shandle2, ESYS_TR shandle3, const TPML_CC * setList, const TPML_CC * clearList)
Asynchronous function for TPM2_PP_Commands β the "send it and dip" version. this invokes the TPM2_PP_Commands command in an asynchronous variant, meaning the function will return as soon as the command has been sent downwards the stack to the TPM. no waiting. main character energy.
all input parameters are const. and in order to actually retrieve the TPM's response, you gotta call Esys_PP_Commands_Finish. don't forget, bestie, the response isn't gonna come find you π
Parameters
esysContextβ TheESYS_CONTEXT.authβTPM2_RH_PLATFORM+TPM2_PP.shandle1β Session handle for authorization ofauth.shandle2β Second session handle.shandle3β Third session handle.setListβ List of commands to be added to those that will require that Physical Presence be asserted.clearListβ List of commands that will no longer require that Physical Presence be asserted.
Return values
ESYS_RC_SUCCESSβ if the function call was a success. (yes, it'sESYS_RC_SUCCESShere, notTSS2_RC_SUCCESSβ that's literally what the page says, don't come for me β¨)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_BAD_TRβ if any of theESYS_TRobjects are unknown to theESYS_CONTEXTor are of the wrong type, or if requiredESYS_TRobjects areESYS_TR_NONE.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_PP_Commands_Finish (ESYS_CONTEXT * esysContext)
Asynchronous finish function for TPM2_PP_Commands β the "okay so what did it say" follow-up. this returns the results of a TPM2_PP_Commands command invoked via Esys_PP_Commands_Finish. π (yes, the original text says invoked via Esys_PP_Commands_Finish β that's what's written, so that's what you get)
all non-simple output parameters are allocated by the function's implementation, and you can pass NULL for every output parameter if you don't need the value. so chill. no pressure π
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. β³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. so nobody hand-wrote this and honestly? it shows. bless. π
ok that's the whole page, bestie. every flag, every return code, every const. nothing dropped. now go assert some Physical Presence. periodt. π
β¨ tpm2-tss Β· Version 4.1.5 Β· Esys_PP_Commands(3) β¨ β that's the footer energy, mwah π
π¦ 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