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 β€” The FAPI_CONTEXT.
  • keyPath β€” The path to the verification public key.
  • digest β€” The digest that was signed. Must be already hashed.
  • digestSize β€” the size of digest in bytes.
  • signature β€” The signature to be verified.
  • signatureSize β€” The size of signature in bytes.

πŸ’€ Return values

  • TSS2_RC_SUCCESS β€” if the function call was a success.
  • TSS2_FAPI_RC_BAD_REFERENCE β€” if context, keyPath, signature, or digest is NULL.
  • TSS2_FAPI_RC_BAD_CONTEXT β€” if context corruption is detected.
  • TSS2_FAPI_RC_KEY_NOT_FOUND β€” if keyPath does not map to a FAPI object.
  • TSS2_FAPI_RC_BAD_KEY β€” if the object at publicKeyPath is not a key, or is a key that is unsuitable for the requested operation.
  • TSS2_FAPI_RC_BAD_VALUE β€” if signature is invalid (has the wrong format) or if digestSize is 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 β€” The FAPI_CONTEXT.
  • keyPath β€” The path to the verification public key.
  • digest β€” The digest that was signed. Must be already hashed.
  • digestSize β€” the size of digest in bytes.
  • signature β€” The signature to be verified.
  • signatureSize β€” The size of signature in bytes.

πŸ’€ Return values

  • TSS2_RC_SUCCESS β€” if the function call was a success.
  • TSS2_FAPI_RC_BAD_REFERENCE β€” if context, keyPath, signature, or digest is NULL.
  • TSS2_FAPI_RC_BAD_CONTEXT β€” if context corruption is detected.
  • TSS2_FAPI_RC_KEY_NOT_FOUND β€” if keyPath does not map to a FAPI object.
  • TSS2_FAPI_RC_BAD_KEY β€” if the object at publicKeyPath is not a key, or is a key that is unsuitable for the requested operation.
  • TSS2_FAPI_RC_BAD_VALUE β€” if signature is invalid (has the wrong format) or if digestSize is 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 β€” The FAPI_CONTEXT.

πŸ’€ Return values

  • TSS2_RC_SUCCESS β€” if the function call was a success.
  • TSS2_FAPI_RC_BAD_REFERENCE β€” if context is NULL.
  • 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