Fapi_VerifySignature(3)
π Fapi_VerifySignature(3) β Library Functions Manual energy π
okay bestie, welcome to Fapi_VerifySignature(3) from the Library Functions Manual, brought to you by the tpm2-tss girlies β¨ This page is literally about verifying signatures with FAPI, and it comes in one-call, async, and finish flavors. No cap.
πΈ NAME πΈ
Fapi_VerifySignature β the FAPI signature-verifying function set: one-call, async, and async-finish. Itβs giving βverify that signature, bestie.β π
β¨ SYNOPSIS β¨
Three functions, one very specific vibe:
TSS2_RC Fapi_VerifySignature (FAPI_CONTEXT *context, char const
*keyPath, uint8_t const *digest, size_t digestSize, uint8_t const
*signature, size_t signatureSize)
TSS2_RC Fapi_VerifySignature_Async (FAPI_CONTEXT *context, char const
*keyPath, uint8_t const *digest, size_t digestSize, uint8_t const
*signature, size_t signatureSize)
TSS2_RC Fapi_VerifySignature_Finish (FAPI_CONTEXT *context)
π DETAILED DESCRIPTION π
FAPI functions to invoke VerifySignature either as a one-call situation or in an asynchronous manner. Pick your era, bestie π¦
π FUNCTION DOCUMENTATION π
π
TSS2_RC Fapi_VerifySignature β the one-call function
TSS2_RC Fapi_VerifySignature (FAPI_CONTEXT *context, char const
*keyPath, uint8_t const *digest, size_t digestSize, uint8_t const
*signature, size_t signatureSize)
One-Call function for Fapi_VerifySignature.
It verifies a signature using a public key found in a keyPath. Main character behavior, honestly π
π Parameters
contextβ TheFAPI_CONTEXT.keyPathβ The path to the verification public key.digestβ The digest that was signed. Must be already hashed.digestSizeβ the size ofdigestin bytes.signatureβ The signature to be verified.signatureSizeβ The size ofsignaturein bytes.
π Return values
TSS2_RC_SUCCESSβ if the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEβ ifcontext,keyPath,signature, ordigestisNULL.TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detected.TSS2_FAPI_RC_KEY_NOT_FOUNDβ ifkeyPathdoes not map to a FAPI object.TSS2_FAPI_RC_BAD_KEYβ if the object atpublicKeyPathis not a key, or is a key that is unsuitable for the requested operation.TSS2_FAPI_RC_BAD_VALUEβ ifsignatureis invalid (has the wrong format) or ifdigestSizeis zero.TSS2_FAPI_RC_SIGNATURE_VERIFICATION_FAILEDβ if the signature fails to verify.TSS2_FAPI_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pending.TSS2_FAPI_RC_IO_ERRORβ if the data cannot be saved.TSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_PATH_NOT_FOUNDβ if a FAPI object path was not found during authorization.TSS2_FAPI_RC_TRY_AGAINβ if an I/O operation is not finished yet and this function needs to be called again.TSS2_FAPI_RC_GENERAL_FAILUREβ if an internal error occurred.TSS2_FAPI_RC_NOT_PROVISIONEDβ FAPI was not provisioned.TSS2_FAPI_RC_BAD_PATHβ if the path is used in inappropriate context or contains illegal characters.
π¦ TSS2_RC Fapi_VerifySignature_Async β the async function
TSS2_RC Fapi_VerifySignature_Async (FAPI_CONTEXT *context, char const
*keyPath, uint8_t const *digest, size_t digestSize, uint8_t const
*signature, size_t signatureSize)
Asynchronous function for Fapi_VerifySignature.
It verifies a signature using a public key found in a keyPath.
Call Fapi_VerifySignature_Finish to finish the execution of this command. Do not forget the finish, bestie β thatβs the whole sequel π
π Parameters
contextβ TheFAPI_CONTEXT.keyPathβ The path to the verification public key.digestβ The digest that was signed. Must be already hashed.digestSizeβ the size ofdigestin bytes.signatureβ The signature to be verified.signatureSizeβ The size ofsignaturein bytes.
π Return values
TSS2_RC_SUCCESSβ if the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEβ ifcontext,keyPath,signature, ordigestisNULL.TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detected.TSS2_FAPI_RC_KEY_NOT_FOUNDβ ifkeyPathdoes not map to a FAPI object.TSS2_FAPI_RC_BAD_KEYβ if the object atpublicKeyPathis not a key, or is a key that is unsuitable for the requested operation.TSS2_FAPI_RC_BAD_VALUEβ ifsignatureis invalid (has the wrong format) or ifdigestSizeis zero.TSS2_FAPI_RC_SIGNATURE_VERIFICATION_FAILEDβ if the signature fails to verify.TSS2_FAPI_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pending.TSS2_FAPI_RC_IO_ERRORβ if the data cannot be saved.TSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_PATH_NOT_FOUNDβ if a FAPI object path was not found during authorization.TSS2_FAPI_RC_NOT_PROVISIONEDβ FAPI was not provisioned.TSS2_FAPI_RC_BAD_PATHβ if the path is used in inappropriate context or contains illegal characters.
β¨ TSS2_RC Fapi_VerifySignature_Finish β the finish function
TSS2_RC Fapi_VerifySignature_Finish (FAPI_CONTEXT *context)
Asynchronous finish function for Fapi_VerifySignature.
This function should be called after a previous Fapi_VerifySignature_Async. Itβs literally the βfinish the thingβ era π
π Parameters
contextβ TheFAPI_CONTEXT.
π Return values
TSS2_RC_SUCCESSβ if the function call was a success.TSS2_FAPI_RC_BAD_REFERENCEβ ifcontextisNULL.TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detected.TSS2_FAPI_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pending.TSS2_FAPI_RC_IO_ERRORβ if the data cannot be saved.TSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_TRY_AGAINβ if the asynchronous operation is not yet complete. Call this function again later.TSS2_FAPI_RC_GENERAL_FAILUREβ if an internal error occurred.TSS2_FAPI_RC_BAD_VALUEβ if an invalid value was passed into the function.TSS2_FAPI_RC_SIGNATURE_VERIFICATION_FAILEDβ if the signature could not be verified.
π AUTHOR π
Generated automatically by Doxygen for tpm2-tss from the source code.
Thatβs the whole page, bestie. Footer energy: source tpm2-tss, Version 4.1.5, and the date slot is literally not on the footer line, so Iβm not inventing one π Stay verified, stay iconic π
β¨
π¦ 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