psa_its_set() function
create a new or modify an existing uid/value pair
Arguments
uid
the identifier for the data
data_length
The size in bytes of the data in `p_data`
p_data
A buffer containing the data
create_flags
The flags that the data will be stored with
Return value
A status indicating the success/failure of the operation #PSA_SUCCESS The operation completed successfully #PSA_ERROR_NOT_PERMITTED The operation failed because the provided `uid` value was already created with PSA_STORAGE_FLAG_WRITE_ONCE #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 #PSA_ERROR_INSUFFICIENT_STORAGE The operation failed because there was insufficient space on the storage medium #PSA_ERROR_STORAGE_FAILURE The operation failed because the physical storage has failed (Fatal error) #PSA_ERROR_INVALID_ARGUMENT The operation failed because one of the provided pointers(`p_data`) is invalid, for example is `NULL` or references memory the caller cannot access