ESYS_INCREMENTALSELFTEST(3)
π Esys_IncrementalSelfTest(3) β Library Functions Manual
okay so bestie, welcome to the ESAPI glow-up page for TPM2_IncrementalSelfTest β this is the Esys_IncrementalSelfTest(3) moment, and honestly? iconic. Let's get into it β¨
πΈ NAME πΈ
Esys_IncrementalSelfTest β the ESAPI function for the TPM2_IncrementalSelfTest command. that's the whole vibe. no notes. π
β¨ SYNOPSIS β¨
π Functions
TSS2_RC Esys_IncrementalSelfTest_Async (ESYS_CONTEXT *esysContext,
ESYS_TR shandle1, ESYS_TR shandle2, ESYS_TR shandle3, const TPML_ALG
*toTest)
TSS2_RC Esys_IncrementalSelfTest (ESYS_CONTEXT *esysContext, ESYS_TR
shandle1, ESYS_TR shandle2, ESYS_TR shandle3, const TPML_ALG
*toTest, TPML_ALG **toDoList)
TSS2_RC Esys_IncrementalSelfTest_Finish (ESYS_CONTEXT *esysContext,
TPML_ALG **toDoList)
π¦ Detailed Description π¦
it's the ESAPI function that lets you invoke the TPM2_IncrementalSelfTest command β either as a one-call situation (you get everything at once, main character energy) or in an asynchronous manner (send it off, come back later, lowkey mysterious). π«Ά
π Function Documentation π
π TSS2_RC Esys_IncrementalSelfTest (ESYS_CONTEXT * esysContext, ESYS_TR shandle1, ESYS_TR shandle2, ESYS_TR shandle3, const TPML_ALG * toTest, TPML_ALG ** toDoList)
One-Call function for TPM2_IncrementalSelfTest β
so this one invokes the TPM2_IncrementalSelfTest command in a one-call variant. translation: the function will block until the TPM response is available β yes, it's gonna sit there and wait, that's the whole point, hold space for it. π All input parameters are const. and the memory for non-simple output parameters? allocated by the function implementation itself. so generous. not you having to do it. π
Parameters
esysContextβ TheESYS_CONTEXT.shandle1β First session handle.shandle2β Second session handle.shandle3β Third session handle.toTestβ List of algorithms that should be tested.toDoListβ List of algorithms that need testing. (callee-allocated)
Return values
TSS2_RC_SUCCESSif the function call was a success. πTSS2_ESYS_RC_BAD_REFERENCEif theesysContextor required input pointers or required output handle references areNULL.TSS2_ESYS_RC_BAD_CONTEXTifesysContextcorruption is detected.TSS2_ESYS_RC_MEMORYif the ESAPI cannot allocate enough memory for internal operations or return parameters.TSS2_ESYS_RC_BAD_SEQUENCEif the context has an asynchronous operation already pending.TSS2_ESYS_RC_INSUFFICIENT_RESPONSEif the TPM's response does not at least contain the tag, response length, and response code.TSS2_ESYS_RC_MALFORMED_RESPONSEif the TPM's response is corrupted. π«TSS2_ESYS_RC_RSP_AUTH_FAILEDif the response HMAC from the TPM did not verify.TSS2_ESYS_RC_MULTIPLE_DECRYPT_SESSIONSif more than one session has the 'decrypt' attribute bit set.TSS2_ESYS_RC_MULTIPLE_ENCRYPT_SESSIONSif more than one session has the 'encrypt' attribute bit set.TSS2_ESYS_RC_NO_DECRYPT_PARAMif 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_PARAMif 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. (iykyk π₯)
π TSS2_RC Esys_IncrementalSelfTest_Async (ESYS_CONTEXT * esysContext, ESYS_TR shandle1, ESYS_TR shandle2, ESYS_TR shandle3, const TPML_ALG * toTest)
Asynchronous function for TPM2_IncrementalSelfTest π¦
this is the async variant, and it's giving "I'll text you later" energy β the function returns as soon as the command has been sent downwards the stack to the TPM. it does not wait around. All input parameters are const. and when you actually want the TPM's response? that's when you call Esys_IncrementalSelfTest_Finish. team work makes the dream work fr fr. π
Parameters
esysContextβ TheESYS_CONTEXT.shandle1β First session handle.shandle2β Second session handle.shandle3β Third session handle.toTestβ List of algorithms that should be tested.
Return values
ESYS_RC_SUCCESSif the function call was a success. β¨TSS2_ESYS_RC_BAD_REFERENCEif theesysContextor required input pointers or required output handle references areNULL.TSS2_ESYS_RC_BAD_CONTEXTifesysContextcorruption is detected.TSS2_ESYS_RC_MEMORYif 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_SESSIONSif more than one session has the 'decrypt' attribute bit set.TSS2_ESYS_RC_MULTIPLE_ENCRYPT_SESSIONSif more than one session has the 'encrypt' attribute bit set.TSS2_ESYS_RC_NO_DECRYPT_PARAMif 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_PARAMif one of the sessions has the 'encrypt' attribute set and the command does not support encryption of the first response parameter.
π TSS2_RC Esys_IncrementalSelfTest_Finish (ESYS_CONTEXT * esysContext, TPML_ALG ** toDoList)
Asynchronous finish function for TPM2_IncrementalSelfTest πΈ
the cleanup era!! this function returns the results of a TPM2_IncrementalSelfTest command invoked via Esys_IncrementalSelfTest_Finish. (yes, the manpage literally says that β it's naming itself, we love a self-referential queen. π) All non-simple output parameters are allocated by the function's implementation. and here's a tip: NULL can be passed for every output parameter if the value is not required. no pressure bestie. π
Parameters
esysContextβ TheESYS_CONTEXT.toDoListβ List of algorithms that need testing. (callee-allocated)
Return values
TSS2_RC_SUCCESSon success. πESYS_RC_SUCCESSif the function call was a success.TSS2_ESYS_RC_BAD_REFERENCEif theesysContextor required input pointers or required output handle references areNULL.TSS2_ESYS_RC_BAD_CONTEXTifesysContextcorruption is detected.TSS2_ESYS_RC_MEMORYif the ESAPI cannot allocate enough memory for internal operations or return parameters.TSS2_ESYS_RC_BAD_SEQUENCEif the context has an asynchronous operation already pending.TSS2_ESYS_RC_TRY_AGAINif the timeout counter expires before the TPM response is received. πTSS2_ESYS_RC_INSUFFICIENT_RESPONSEif the TPM's response does not at least contain the tag, response length, and response code.TSS2_ESYS_RC_RSP_AUTH_FAILEDif the response HMAC from the TPM did not verify.TSS2_ESYS_RC_MALFORMED_RESPONSEif 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.
β οΈ reminder that those TSS2_ESYS_RC_* codes are your vibe check failing β they mean something upstream said no. keep them close, don't ignore them.
π Author π
Generated automatically by Doxygen for tpm2-tss from the source code. yes, a robot wrote this, and honestly it ate. π€β¨
and that's the page, bestie!! this whole thing came to you courtesy of tpm2-tss, Version 4.1.5 π«Ά β go forth and incremental-self-test responsibly, 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