17 #ifdef PS_CREATE_FLASH_LAYOUT
71 size_t *p_data_length)
#define PSA_ERROR_INVALID_SIGNATURE
#define PSA_STORAGE_FLAG_NO_CONFIDENTIALITY
uint32_t tfm_ps_get_support(void)
Gets a bitmask with flags set for all of the optional features supported by the implementation.
#define PSA_STORAGE_FLAG_WRITE_ONCE
psa_status_t ps_object_get_info(psa_storage_uid_t uid, int32_t client_id, struct psa_storage_info_t *info)
Gets the asset information for the object with the provided UID and client ID.
#define PSA_ERROR_GENERIC_ERROR
#define PSA_ERROR_INVALID_ARGUMENT
psa_status_t tfm_ps_get(int32_t client_id, psa_storage_uid_t uid, uint32_t data_offset, uint32_t data_size, size_t *p_data_length)
Gets the asset data for the provided uid.
psa_status_t tfm_ps_init(void)
Initializes the protected storage system.
#define PSA_STORAGE_FLAG_NO_REPLAY_PROTECTION
psa_status_t ps_object_delete(psa_storage_uid_t uid, int32_t client_id)
Deletes the object with the provided UID and client ID.
#define PSA_ERROR_NOT_SUPPORTED
psa_status_t tfm_ps_set(int32_t client_id, psa_storage_uid_t uid, uint32_t data_length, psa_storage_create_flags_t create_flags)
Creates a new or modifies an existing asset.
psa_status_t tfm_ps_get_info(int32_t client_id, psa_storage_uid_t uid, struct psa_storage_info_t *p_info)
Gets the metadata for the provided uid.
uint64_t psa_storage_uid_t
psa_status_t ps_object_create(psa_storage_uid_t uid, int32_t client_id, psa_storage_create_flags_t create_flags, uint32_t size)
Creates a new object with the provided UID and client ID.
psa_status_t ps_object_read(psa_storage_uid_t uid, int32_t client_id, uint32_t offset, uint32_t size, size_t *p_data_length)
Gets the data of the object with the provided UID and client ID.
#define TFM_PS_INVALID_UID
uint32_t psa_storage_create_flags_t
psa_status_t tfm_ps_remove(int32_t client_id, psa_storage_uid_t uid)
Removes the provided uid and its associated data from storage.
int32_t psa_status_t
Function return status.
psa_status_t ps_system_wipe_all(void)
Wipes the protected storage system and all object data.
psa_status_t ps_system_prepare(void)
Prepares the protected storage system for usage, populating internal structures. It identifies and va...