42#define PSA_STORAGE_FLAG_NONE 0 /**< No flags to pass */
43#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`*/
44
45/**
46 * \brief A container for metadata associated with a specific uid
62#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 */
63#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 */
64
65/**
66 * \brief create a new or modify an existing uid/value pair
67 *
68 * \param[in] uid the identifier for the data
69 * \param[in] data_length The size in bytes of the data in `p_data`
70 * \param[in] p_data A buffer containing the data
71 * \param[in] create_flags The flags that the data will be stored with
72 *
73 * \return A status indicating the success/failure of the operation
74 *
75 * \retval PSA_SUCCESS The operation completed successfully
76 * \retval PSA_ERROR_NOT_PERMITTED The operation failed because the provided `uid` value was already created with PSA_STORAGE_WRITE_ONCE_FLAG
77 * \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
78 * \retval PSA_ERROR_INSUFFICIENT_STORAGE The operation failed because there was insufficient space on the storage medium
79 * \retval PSA_ERROR_STORAGE_FAILURE The operation failed because the physical storage has failed (Fatal error)
80 * \retval PSA_ERROR_INVALID_ARGUMENT The operation failed because one of the provided pointers(`p_data`)
81 * 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.