nRF Connect SDK API 2.8.99
|
psa_status_t psa_its_set | ( | psa_storage_uid_t | uid, |
size_t | data_length, | ||
const void * | p_data, | ||
psa_storage_create_flags_t | create_flags ) |
#include <include/internal_trusted_storage.h>
Create a new, or modify an existing, uid/value pair.
Stores data in the internal storage.
[in] | uid | The identifier for the data |
[in] | data_length | The size in bytes of the data in p_data |
[in] | p_data | A buffer containing the data |
[in] | create_flags | The flags that the data will be stored with |
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 |