Fapi_GetPl...rtificates(3)

πŸ’… NAME

Fapi_GetPlatformCertificates β€” literally Fapi_GetPlatformCertificates, no cap πŸ˜­πŸ’–. Also folding in the page tea right here: title is Fapi_GetPl...rtificates(3), manual name is Library Functions Manual β€” now you're caught up, bestie 🫢.

✨ SYNOPSIS ✨

πŸŽ€ Functions

TSS2_RC Fapi_GetPlatformCertificates (FAPI_CONTEXT *context, uint8_t
    **certificates, size_t *certificatesSize)
TSS2_RC Fapi_GetPlatformCertificates_Async (FAPI_CONTEXT *context)
TSS2_RC Fapi_GetPlatformCertificates_Finish (FAPI_CONTEXT *context,
    uint8_t **certificates, size_t *certificatesSize)

🌸 DETAILED DESCRIPTION 🌸

These are the FAPI functions that invoke GetPlatformCertificates either as a one-call or in an asynchronous manner, periodt ✨.

🧚 FUNCTION DOCUMENTATION 🧚

πŸ’– One-call: Fapi_GetPlatformCertificates

TSS2_RC Fapi_GetPlatformCertificates (FAPI_CONTEXT * context, uint8_t **
    certificates, size_t * certificatesSize)

One-call function for Fapi_GetPlatformCertificates β€” yes bestie, the one-shot version πŸ’….

Platform certificates for TPM 2.0 can consist not only of a single certificate but a series of so-called delta certificates. This function returns the set of Platform certificates concatenated in a continuous buffer. Obsessed with a continuous buffer, honestly 🫢✨.

πŸ“ Parameters

  • context β€” the FAPI_CONTEXT πŸ‘‘.
  • certificates β€” the platform certificates πŸŽ€.
  • certificatesSize β€” the size of the buffer with the certificates. May be NULL πŸ’€.

πŸ’€ Return values

  • TSS2_RC_SUCCESS β€” the function call was a success, slay βœ….
  • TSS2_FAPI_RC_BAD_REFERENCE β€” context or certificates is NULL 😭.
  • TSS2_FAPI_RC_BAD_CONTEXT β€” context corruption was detected πŸ‘€.
  • TSS2_FAPI_RC_BAD_SEQUENCE β€” the context already has an asynchronous operation pending, not now bestie πŸ’….
  • TSS2_FAPI_RC_IO_ERROR β€” the data cannot be saved 🫠.
  • TSS2_FAPI_RC_MEMORY β€” FAPI cannot allocate enough memory for internal operations or return parameters πŸ˜΅β€πŸ’«.
  • TSS2_FAPI_RC_NO_TPM β€” FAPI was initialized in no-TPM-mode via its config file 🚫.
  • TSS2_FAPI_RC_NO_CERT β€” an error did occur during certificate downloading 😬.
  • TSS2_FAPI_RC_TRY_AGAIN β€” an I/O operation is not finished yet and this function needs to be called again πŸ”.
  • TSS2_FAPI_RC_AUTHORIZATION_UNKNOWN β€” a required authorization callback is not set πŸ™ˆ.
  • TSS2_FAPI_RC_AUTHORIZATION_FAILED β€” the authorization attempt fails 😀.
  • TSS2_FAPI_RC_GENERAL_FAILURE β€” an internal error occurred πŸ’₯.
  • TSS2_FAPI_RC_POLICY_UNKNOWN β€” policy search for a certain policy digest was not successful πŸ”.
  • TSS2_ESYS_RC_* β€” possible error codes of ESAPI πŸ‘€.
  • TSS2_FAPI_RC_NOT_PROVISIONED β€” FAPI was not provisioned 🚧.
  • TSS2_FAPI_RC_KEY_NOT_FOUND β€” a key was not found πŸ”‘.
  • TSS2_FAPI_RC_BAD_PATH β€” the path is used in inappropriate context or contains illegal characters πŸ›£οΈ.
  • TSS2_FAPI_RC_BAD_VALUE β€” an invalid value was passed into the function 🚩.
  • TSS2_FAPI_RC_PATH_NOT_FOUND β€” a FAPI object path was not found during authorization 🧭.

πŸ¦‹ Async: Fapi_GetPlatformCertificates_Async

TSS2_RC Fapi_GetPlatformCertificates_Async (FAPI_CONTEXT * context)

Asynchronous function for Fapi_GetPlatformCertificates β€” it's giving async main character energy ⏳✨.

Platform certificates for TPM 2.0 can consist not only of a single certificate but a series of so-called delta certificates. This function returns the set of Platform certificates concatenated in a continuous buffer. Again: continuous buffer, iconic 🫢.

Call Fapi_GetPlatformCertificates_Finish to finish the execution of this command, bestie πŸ’….

πŸ“ Parameters

  • context β€” the FAPI_CONTEXT πŸ‘‘.

πŸ’€ Return values

  • TSS2_RC_SUCCESS β€” the function call was a success, periodt βœ….
  • TSS2_FAPI_RC_BAD_REFERENCE β€” context is NULL 😭.
  • TSS2_FAPI_RC_BAD_CONTEXT β€” context corruption was detected πŸ‘€.
  • TSS2_FAPI_RC_BAD_SEQUENCE β€” the context already has an asynchronous operation pending 🚨.
  • TSS2_FAPI_RC_IO_ERROR β€” the data cannot be saved 🫠.
  • TSS2_FAPI_RC_MEMORY β€” FAPI cannot allocate enough memory for internal operations or return parameters πŸ˜΅β€πŸ’«.
  • TSS2_FAPI_RC_NO_TPM β€” FAPI was initialized in no-TPM-mode via its config file 🚫.

🌟 Finish: Fapi_GetPlatformCertificates_Finish

TSS2_RC Fapi_GetPlatformCertificates_Finish (FAPI_CONTEXT * context, uint8_t
    ** certificates, size_t * certificatesSize)

Asynchronous finish function for Fapi_GetPlatformCertificates β€” the grand finale, your async era is ending 🌈.

This function should be called after a previous Fapi_GetPlatformCertificates_Async, iykyk 🧚.

πŸ“ Parameters

  • context β€” the FAPI_CONTEXT πŸ‘‘.
  • certificates β€” the platform certificates πŸŽ€.
  • certificatesSize β€” the size of the buffer with the certificates. May be NULL πŸ’€.

πŸ’€ Return values

  • TSS2_RC_SUCCESS β€” the function call was a success, ate βœ….
  • TSS2_FAPI_RC_BAD_REFERENCE β€” context or certificates is NULL 😭.
  • TSS2_FAPI_RC_BAD_CONTEXT β€” context corruption was detected πŸ‘€.
  • TSS2_FAPI_RC_BAD_SEQUENCE β€” the context already has an asynchronous operation pending 🚨.
  • TSS2_FAPI_RC_IO_ERROR β€” the data cannot be saved 🫠.
  • TSS2_FAPI_RC_MEMORY β€” FAPI cannot allocate enough memory for internal operations or return parameters πŸ˜΅β€πŸ’«.
  • TSS2_FAPI_RC_TRY_AGAIN β€” the asynchronous operation is not yet complete. Call this function again later πŸ”.
  • TSS2_FAPI_RC_NO_CERT β€” an error did occur during certificate downloading 😬.
  • TSS2_FAPI_RC_AUTHORIZATION_UNKNOWN β€” a required authorization callback is not set πŸ™ˆ.
  • TSS2_FAPI_RC_AUTHORIZATION_FAILED β€” the authorization attempt fails 😀.
  • TSS2_FAPI_RC_GENERAL_FAILURE β€” an internal error occurred πŸ’₯.
  • TSS2_FAPI_RC_POLICY_UNKNOWN β€” policy search for a certain policy digest was not successful πŸ”.
  • TSS2_ESYS_RC_* β€” possible error codes of ESAPI πŸ‘€.
  • TSS2_FAPI_RC_NOT_PROVISIONED β€” FAPI was not provisioned 🚧.
  • TSS2_FAPI_RC_KEY_NOT_FOUND β€” a key was not found πŸ”‘.
  • TSS2_FAPI_RC_BAD_PATH β€” the path is used in inappropriate context or contains illegal characters πŸ›£οΈ.
  • TSS2_FAPI_RC_BAD_VALUE β€” an invalid value was passed into the function 🚩.
  • TSS2_FAPI_RC_PATH_NOT_FOUND β€” a FAPI object path was not found during authorization 🧭.

πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically by Doxygen for tpm2-tss from the source code πŸ“βœ¨.


Ok that's the whole page, bestie β€” source: tpm2-tss, version: 4.1.5; the footer has no date printed, so I'm not inventing one πŸ’€. Bye and go get those platform certificates πŸ«ΆπŸ’–πŸŽ€

πŸ“¦ where this page comes from