9#ifndef PSA_PROTECTED_STORAGE_H
10#define PSA_PROTECTED_STORAGE_H
16#include "psa/storage_common.h"
33#define PSA_PS_API_VERSION_MAJOR 1
34#define PSA_PS_API_VERSION_MINOR 0
73psa_status_t
psa_ps_set(psa_storage_uid_t uid,
size_t data_length,
const void *p_data,
74 psa_storage_create_flags_t create_flags);
119psa_status_t
psa_ps_get(psa_storage_uid_t uid,
size_t data_offset,
size_t data_size,
void *p_data,
120 size_t *p_data_length);
148psa_status_t
psa_ps_get_info(psa_storage_uid_t uid,
struct psa_storage_info_t *p_info);
210 psa_storage_create_flags_t create_flags);
psa_status_t psa_ps_remove(psa_storage_uid_t uid)
Remove the provided uid and its associated data from the storage.
psa_status_t psa_ps_set_extended(psa_storage_uid_t uid, size_t data_offset, size_t data_length, const void *p_data)
Sets partial data into an asset.
psa_status_t psa_ps_get(psa_storage_uid_t uid, size_t data_offset, size_t data_size, void *p_data, size_t *p_data_length)
Retrieve data associated with a provided uid.
uint32_t psa_ps_get_support(void)
Lists optional features.
psa_status_t psa_ps_create(psa_storage_uid_t uid, size_t capacity, psa_storage_create_flags_t create_flags)
Reserves storage for the specified uid.
psa_status_t psa_ps_set(psa_storage_uid_t uid, size_t data_length, const void *p_data, psa_storage_create_flags_t create_flags)
Create a new, or modify an existing, uid/value pair.
psa_status_t psa_ps_get_info(psa_storage_uid_t uid, struct psa_storage_info_t *p_info)
Retrieve the metadata about the provided uid.