Esys_Hash(3)
πΈ NAME πΈ
Esys_Hash β the ESAPI function for the TPM2_Hash command. This page is Esys_Hash(3) from the Library Functions Manual, and yes bestie, we are officially in the manual-page era. π
β¨ SYNOPSIS β¨
π Functions π
TSS2_RC Esys_Hash_Finish (ESYS_CONTEXT *esysContext, TPM2B_DIGEST
**outHash, TPMT_TK_HASHCHECK **validation)
One function, one signature, zero mystery. Slay. β¨
π¦ Detailed Description π¦
ESAPI function to invoke the TPM2_Hash command either as a one-call or in an asynchronous manner. Thatβs the whole vibe: one-call mode or async mode, and this page is the ESAPI doorway to TPM2_Hash. π«Ά
π« Function Documentation π«
π₯ TSS2_RC Esys_Hash_Finish π₯
TSS2_RC Esys_Hash_Finish (ESYS_CONTEXT * esysContext, TPM2B_DIGEST **
outHash, TPMT_TK_HASHCHECK ** validation)
Asynchronous finish function for TPM2_Hash. π
This function returns the results of a TPM2_Hash command invoked via Esys_Hash_Finish. 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. No cap, thatβs literally the contract. π
π Parameters π
esysContextβ TheESYS_CONTEXT.outHashβ Results. (callee-allocated)validationβTPM2_Ticketindicating that the sequence of octets used to computeoutDigestdid not start withTPM2_GENERATED_VALUE. (callee-allocated)
π Return values π
TSS2_RC_SUCCESSon successESYS_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_RCsproduced 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 me hand-writing lore, the Doxygen machine did that.
okay final footer-ish sign-off, bestie: this page comes from tpm2-tss, Version 4.1.5, and the footer also carries Esys_Hash(3). Date? The page doesnβt show one, so Iβm not inventing it β periodt. πβ¨
π¦ 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