Esys_MakeCredential(3)
π Esys_MakeCredential(3) β¨
okay so this is a page from the Library Functions Manual, and it's all about Esys_MakeCredential β the ESAPI function for the TPM2_MakeCredential command. no cap, that's the whole vibe of the NAME section π«Ά
πΈ NAME πΈ
Esys_MakeCredential β the ESAPI function for the TPM2_MakeCredential command. that's it, that's the name, she's simple and she's iconic π
π SYNOPSIS π
Functions
here's the whole squad, all three of them π§
TSS2_RC Esys_MakeCredential_Async (ESYS_CONTEXT *esysContext, ESYS_TR
handle, ESYS_TR shandle1, ESYS_TR shandle2, ESYS_TR shandle3, const
TPM2B_DIGEST *credential, const TPM2B_NAME *objectName)
TSS2_RC Esys_MakeCredential (ESYS_CONTEXT *esysContext, ESYS_TR handle,
ESYS_TR shandle1, ESYS_TR shandle2, ESYS_TR shandle3, const
TPM2B_DIGEST *credential, const TPM2B_NAME *objectName,
TPM2B_ID_OBJECT **credentialBlob, TPM2B_ENCRYPTED_SECRET **secret)
TSS2_RC Esys_MakeCredential_Finish (ESYS_CONTEXT *esysContext,
TPM2B_ID_OBJECT **credentialBlob, TPM2B_ENCRYPTED_SECRET **secret)
Detailed Description β¨
it's an ESAPI function to invoke the TPM2_MakeCredential command β either as a one-call or in an asynchronous manner. pick your fighter, bestie π
Function Documentation π
TSS2_RC Esys_MakeCredential (ESYS_CONTEXT * esysContext, ESYS_TR handle, ESYS_TR shandle1, ESYS_TR shandle2, ESYS_TR shandle3, const TPM2B_DIGEST * credential, const TPM2B_NAME * objectName, TPM2B_ID_OBJECT ** credentialBlob, TPM2B_ENCRYPTED_SECRET ** secret)
One-Call function for TPM2_MakeCredential π
so this one invokes the TPM2_MakeCredential command in a one-call variant, which literally means the function will block until the TPM response is available β she waits, she's patient, she's committed π. All input parameters are const. And the memory for non-simple output parameters? allocated by the function implementation itself. self-sufficient queen π
Parameters
esysContextβ TheESYS_CONTEXT.handleβ Loaded public area, used to encrypt the sensitive area containing the credential key.shandle1β First session handle.shandle2β Second session handle.shandle3β Third session handle.credentialβ The credential information.objectNameβ Name of the object to which the credential applies.credentialBlobβ The credential. (callee-allocated)secretβ Handle algorithm-dependent data that wraps the key that encryptscredentialBlob. (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. (one at a time, bestie, there's no multitasking here π)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_BAD_TRif any of theESYS_TRobjects are unknown to theESYS_CONTEXTor are of the wrong type or if requiredESYS_TRobjects areESYS_TR_NONE.TSS2_RCs produced by lower layers of the software stack may be returned to the caller unaltered unless handled internally.
TSS2_RC Esys_MakeCredential_Async (ESYS_CONTEXT * esysContext, ESYS_TR handle, ESYS_TR shandle1, ESYS_TR shandle2, ESYS_TR shandle3, const TPM2B_DIGEST * credential, const TPM2B_NAME * objectName)
Asynchronous function for TPM2_MakeCredential π¦
this is the async variant, and the way that she works is: the function will return as soon as the command has been sent downwards the stack to the TPM β she doesn't wait, she has places to be π¨. All input parameters are const. And to actually retrieve the TPM's response you call Esys_MakeCredential_Finish. iykyk π
Parameters
esysContextβ TheESYS_CONTEXT.handleβ Loaded public area, used to encrypt the sensitive area containing the credential key.shandle1β First session handle.shandle2β Second session handle.shandle3β Third session handle.credentialβ The credential information.objectNameβ Name of the object to which the credential applies.
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_BAD_TRif any of theESYS_TRobjects are unknown to theESYS_CONTEXTor are of the wrong type or if requiredESYS_TRobjects areESYS_TR_NONE.
TSS2_RC Esys_MakeCredential_Finish (ESYS_CONTEXT * esysContext, TPM2B_ID_OBJECT ** credentialBlob, TPM2B_ENCRYPTED_SECRET ** secret)
Asynchronous finish function for TPM2_MakeCredential πΈ
this one returns the results of a TPM2_MakeCredential command invoked via Esys_MakeCredential_Finish (yes, that's literally what the page says, don't @ me π). All non-simple output parameters are allocated by the function's implementation. And here's the cute part: NULL can be passed for every output parameter if the value is not required. flexible icon behavior π
Parameters
esysContextβ TheESYS_CONTEXT.credentialBlobβ The credential. (callee-allocated)secretβ Handle algorithm-dependent data that wraps the key that encryptscredentialBlob. (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. (she ghosted you, try again π΅)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.
π Author π
Generated automatically by Doxygen for tpm2-tss from the source code. so no, a human did not sit down and write this β the robot did it and honestly? slay π€π
π see ya π
that's the whole page bestie, no gatekeeping, no crumbs left behind. this came to you from tpm2-tss, Version 4.1.5, manual page Esys_MakeCredential(3) β take care of her, she's iconic βππ¦
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