41#define PSA_STORAGE_FLAG_NONE 0 /**< No flags to pass */
42#define PSA_STORAGE_FLAG_WRITE_ONCE (1 << 0) /**< The data associated with the uid will not be able to be modified or deleted. Intended to be used to set bits in `psa_storage_create_flags_t`*/
43
44/**
45 * \brief A container for metadata associated with a specific uid
61#define PSA_ITS_API_VERSION_MAJOR 1 /**< The major version number of the PSA ITS API. It will be incremented on significant updates that may include breaking changes */
62#define PSA_ITS_API_VERSION_MINOR 1 /**< The minor version number of the PSA ITS API. It will be incremented in small updates that are unlikely to include breaking changes */
63
64/**
65 * \brief create a new or modify an existing uid/value pair
66 *
67 * \param[in] uid the identifier for the data
68 * \param[in] data_length The size in bytes of the data in `p_data`
69 * \param[in] p_data A buffer containing the data
70 * \param[in] create_flags The flags that the data will be stored with
71 *
72 * \return A status indicating the success/failure of the operation
73 *
74 * \retval PSA_SUCCESS The operation completed successfully
75 * \retval PSA_ERROR_NOT_PERMITTED The operation failed because the provided `uid` value was already created with PSA_STORAGE_WRITE_ONCE_FLAG
76 * \retval PSA_ERROR_NOT_SUPPORTED The operation failed because one or more of the flags provided in `create_flags` is not supported or is not valid
77 * \retval PSA_ERROR_INSUFFICIENT_STORAGE The operation failed because there was insufficient space on the storage medium
78 * \retval PSA_ERROR_STORAGE_FAILURE The operation failed because the physical storage has failed (Fatal error)
79 * \retval PSA_ERROR_INVALID_ARGUMENT The operation failed because one of the provided pointers(`p_data`)
80 * is invalid, for example is `NULL` or references memory the caller cannot access
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.