Fapi_SetAppData(3)

🌸 NAME 🌸

Okay bestie, welcome to Fapi_SetAppData(3) from the Library Functions Manual πŸ’… The name is literally Fapi_SetAppData β€” Fapi_SetAppData β€” and this page is all about that function and its little async crew. No cap.


✨ SYNOPSIS ✨

Functions

TSS2_RC Fapi_SetAppData (FAPI_CONTEXT *context, char const *path,
    uint8_t const *appData, size_t appDataSize)
TSS2_RC Fapi_SetAppData_Async (FAPI_CONTEXT *context, char const *path,
    uint8_t const *appData, size_t appDataSize)
TSS2_RC Fapi_SetAppData_Finish (FAPI_CONTEXT *context)

πŸ’… Detailed Description πŸ’…

These are the FAPI functions that invoke SetAppData either as a one-call situation or in an asynchronous manner. Two paths, same data-blob destiny ✨


πŸŽ€ Function Documentation πŸŽ€

πŸ’– TSS2_RC Fapi_SetAppData (FAPI_CONTEXT * context, char const * path, uint8_t const * appData, size_t appDataSize)

This is the one-call function for Fapi_SetAppData, periodt.

It associates an arbitrary data blob with a given object 🫢

Parameters

  • context β€” the FAPI_CONTEXT
  • path β€” the path to the object the blob is associated with
  • appData β€” the blob to associate with the object. May be NULL
  • appDataSize β€” the size of appData in bytes. Must be 0 if appData is NULL

Return values

  • TSS2_RC_SUCCESS β€” if the function call was a success
  • TSS2_FAPI_RC_BAD_REFERENCE β€” if context or path is NULL, or if appData is NULL and appDataSize is not 0
  • TSS2_FAPI_RC_BAD_CONTEXT β€” if context corruption is detected
  • TSS2_FAPI_RC_BAD_PATH β€” if path does not map to a FAPI entity
  • 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_BAD_VALUE β€” if an invalid value was passed into the function
  • TSS2_FAPI_RC_PATH_NOT_FOUND β€” if a FAPI object path was not found during authorization
  • TSS2_FAPI_RC_KEY_NOT_FOUND β€” if a key was not found
  • 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_RC Fapi_SetAppData_Async (FAPI_CONTEXT * context, char const * path, uint8_t const * appData, size_t appDataSize)

The page literally labels this one one-call function for Fapi_SetAppData too β€” yes, even on the async one 😭 β€” but it is what it is, and we keep the details exactly.

It associates an arbitrary data blob with a given object 🌸

Call Fapi_SetAppData_Finish to finish the execution of this command. That's the whole vibe: start async, then finish it.

Parameters

  • context β€” the FAPI_CONTEXT
  • path β€” the path to the object the blob is associated with
  • appData β€” the blob to associate with the object. May be NULL
  • appDataSize β€” the size of appData in bytes. Must be 0 if appData is NULL

Return values

  • TSS2_RC_SUCCESS β€” if the function call was a success
  • TSS2_FAPI_RC_BAD_REFERENCE β€” if context or path is NULL, or if appData is NULL and appDataSize is not 0
  • TSS2_FAPI_RC_BAD_CONTEXT β€” if context corruption is detected
  • TSS2_FAPI_RC_BAD_PATH β€” if path does not map to a FAPI entity
  • 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_BAD_VALUE β€” if an invalid value was passed into the function
  • TSS2_FAPI_RC_PATH_NOT_FOUND β€” if a FAPI object path was not found during authorization
  • TSS2_FAPI_RC_KEY_NOT_FOUND β€” if a key was not found
  • TSS2_FAPI_RC_NOT_PROVISIONED β€” FAPI was not provisioned

🧚 TSS2_RC Fapi_SetAppData_Finish (FAPI_CONTEXT * context)

This is the asynchronous finish function for Fapi_SetAppData, and it's giving cleanup era πŸ’œ

This function should be called after a previous Fapi_SetAppData_Async. Like, don't just leave your async operation hanging, bestie.

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_BAD_PATH β€” if a path is used in inappropriate context or contains illegal characters
  • 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_PATH_NOT_FOUND β€” if a FAPI object path was not found during authorization

πŸ’– Author πŸ’–

Generated automatically by Doxygen for tpm2-tss from the source code. The original prose was auto-generated, but the group-chat energy is all me 😌✨


Okay that's the whole page, bestie πŸ’– β€” it's from tpm2-tss, Version 4.1.5, and the footer also echoes Fapi_SetAppData(3). Bye! πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from