Esys_ECC_Parameters(3)
β¨ Esys_ECC_Parameters β¨
okay so welcome to the Esys_ECC_Parameters(3) page, bestie π
this is the Library Functions Manual entry, and honestly? it's giving "one tiny command, three whole functions." stay with me π«Ά
πΈ NAME πΈ
Esys_ECC_Parameters β the ESAPI function for the TPM2_ECC_Parameters command. that's it, that's the whole name section, she's concise π
π SYNOPSIS π
Functions
TSS2_RC Esys_ECC_Parameters_Async (ESYS_CONTEXT *esysContext, ESYS_TR
shandle1, ESYS_TR shandle2, ESYS_TR shandle3, TPMI_ECC_CURVE
curveID)
TSS2_RC Esys_ECC_Parameters (ESYS_CONTEXT *esysContext, ESYS_TR
shandle1, ESYS_TR shandle2, ESYS_TR shandle3, TPMI_ECC_CURVE
curveID, TPMS_ALGORITHM_DETAIL_ECC **parameters)
TSS2_RC Esys_ECC_Parameters_Finish (ESYS_CONTEXT *esysContext,
TPMS_ALGORITHM_DETAIL_ECC **parameters)
look at her, three signatures, zero notes π copy these exactly, i'm serious, no renaming anything, that's an ick fr fr.
π¦ Detailed Description π¦
so basically this is the ESAPI function that invokes the TPM2_ECC_Parameters command β and you get to pick your fighter: one-call style, or asynchronous style. iconic of her, honestly β
π Function Documentation π
π TSS2_RC Esys_ECC_Parameters (ESYS_CONTEXT * esysContext, ESYS_TR shandle1, ESYS_TR shandle2, ESYS_TR shandle3, TPMI_ECC_CURVE curveID, TPMS_ALGORITHM_DETAIL_ECC ** parameters)
One-Call function for TPM2_ECC_Parameters β the "just do it and let me know when you're done" version π«Ά
this function invokes the TPM2_ECC_Parameters command in a one-call variant. what that means, bestie: the function will block until the TPM response is available. she waits. patiently. main character energy π all input parameters are const. and the memory for non-simple output parameters? allocated by the function implementation, not by you. slay, don't worry about it π
Parameters
esysContextβ TheESYS_CONTEXT.shandle1β First session handle.shandle2β Second session handle.shandle3β Third session handle.curveIDβ Parameter set selector.parametersβ ECC parameters for the selected curve. (callee-allocated)
Return values
TSS2_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_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_RCsproduced by lower layers of the software stack may be returned to the caller unaltered unless handled internally.
π§ TSS2_RC Esys_ECC_Parameters_Async (ESYS_CONTEXT * esysContext, ESYS_TR shandle1, ESYS_TR shandle2, ESYS_TR shandle3, TPMI_ECC_CURVE curveID)
Asynchronous function for TPM2_ECC_Parameters β the "i sent the text, i'm not waiting for the reply" version π
this function invokes the TPM2_ECC_Parameters command in a asynchronous variant (yes, "a asynchronous," we don't edit the queen's grammar π). what that means: the function returns as soon as the command has been sent downwards the stack to the TPM. all input parameters are const. to actually retrieve the TPM's response, you call Esys_ECC_Parameters_Finish. so like, she leaves you on read but she did call you back, iykyk π±
Parameters
esysContextβ TheESYS_CONTEXT.shandle1β First session handle.shandle2β Second session handle.shandle3β Third session handle.curveIDβ Parameter set selector.
Return values
ESYS_RC_SUCCESSβ if the function call was a success. (yes, this one really is written asESYS_RC_SUCCESSβ copy it exactly, bestie, don't "fix" her π«Ά)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_RCsproduced 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_ECC_Parameters_Finish (ESYS_CONTEXT * esysContext, TPMS_ALGORITHM_DETAIL_ECC ** parameters)
Asynchronous finish function for TPM2_ECC_Parameters β the "okay so what did they say" version β¨
this function returns the results of a TPM2_ECC_Parameters command invoked via Esys_ECC_Parameters_Finish. (yes β the docs literally say it's invoked via itself. we're not touching it, that's the canon text, periodt π
) all non-simple output parameters are allocated by the function's implementation. and good news: NULL can be passed for every output parameter if the value is not required β she's flexible like that π
Parameters
esysContextβ TheESYS_CONTEXT.parametersβ ECC parameters for the selected curve. (callee-allocated)
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_RCsproduced by lower layers of the software stack may be returned to the caller unaltered unless handled internally.
β οΈ heads up: yes, theFinishlist has bothTSS2_RC_SUCCESSandESYS_RC_SUCCESSin it. that's not a typo from me, that's what the page says. keep both, bestie π
π Author π
Generated automatically by Doxygen for tpm2-tss from the source code. so nobody wrote this page, a robot did, and honestly? she ate π€π
and that's the whole page!! mwah π this came from tpm2-tss, Version 4.1.5 β no date on the footer, so that's all we got, bestie π go forth and query those ECC parameters, slay π₯
π¦ 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