20#ifndef __PSA_INTERNAL_TRUSTED_STORAGE_H__
21#define __PSA_INTERNAL_TRUSTED_STORAGE_H__
28#include "mbed_toolchain.h"
33#define PSA_ITS_API_VERSION_MAJOR 1
34#define PSA_ITS_API_VERSION_MINOR 1
37MBED_DEPRECATED(
"ITS specific types should not be used")
40MBED_DEPRECATED("ITS specific types should not be used")
43MBED_DEPRECATED("ITS specific types should not be used")
46MBED_DEPRECATED("ITS specific types should not be used")
47#define psa_its_info_t psa_storage_info_t
50#define PSA_ITS_SUCCESS PSA_SUCCESS
51#define PSA_ITS_ERROR_UID_NOT_FOUND PSA_ERROR_DOES_NOT_EXIST
52#define PSA_ITS_ERROR_STORAGE_FAILURE PSA_ERROR_STORAGE_FAILURE
53#define PSA_ITS_ERROR_INSUFFICIENT_SPACE PSA_ERROR_INSUFFICIENT_STORAGE
54#define PSA_ITS_ERROR_OFFSET_INVALID PSA_ERROR_INVALID_ARGUMENT
55#define PSA_ITS_ERROR_INCORRECT_SIZE PSA_ERROR_BUFFER_TOO_SMALL
56#define PSA_ITS_ERROR_INVALID_ARGUMENTS PSA_ERROR_INVALID_ARGUMENT
57#define PSA_ITS_ERROR_FLAGS_NOT_SUPPORTED PSA_ERROR_NOT_SUPPORTED
58#define PSA_ITS_ERROR_WRITE_ONCE PSA_ERROR_NOT_PERMITTED
59#define PSA_ITS_FLAG_WRITE_ONCE PSA_STORAGE_FLAG_WRITE_ONCE
61MBED_DEPRECATED(
"PS specific types should not be used")
63MBED_DEPRECATED("PS specific types should not be used")
65MBED_DEPRECATED("PS specific types should not be used")
67MBED_DEPRECATED("PS specific types should not be used")
68#define psa_ps_info_t psa_storage_info_t
70#define PSA_PS_SUCCESS PSA_SUCCESS
71#define PSA_PS_ERROR_UID_NOT_FOUND PSA_ERROR_DOES_NOT_EXIST
72#define PSA_PS_ERROR_STORAGE_FAILURE PSA_ERROR_STORAGE_FAILURE
73#define PSA_PS_ERROR_INSUFFICIENT_SPACE PSA_ERROR_INSUFFICIENT_STORAGE
74#define PSA_PS_ERROR_OFFSET_INVALID PSA_ERROR_INVALID_ARGUMENT
75#define PSA_PS_ERROR_INCORRECT_SIZE PSA_ERROR_BUFFER_TOO_SMALL
76#define PSA_PS_ERROR_INVALID_ARGUMENT PSA_ERROR_INVALID_ARGUMENT
77#define PSA_PS_ERROR_FLAGS_NOT_SUPPORTED PSA_ERROR_NOT_SUPPORTED
78#define PSA_PS_ERROR_WRITE_ONCE PSA_ERROR_NOT_PERMITTED
79#define PSA_PS_FLAG_WRITE_ONCE PSA_STORAGE_FLAG_WRITE_ONCE
127 size_t *p_data_length);
int32_t psa_status_t
Function return status.
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)
create a new or modify an existing uid/value pair
psa_status_t psa_its_get(psa_storage_uid_t uid, size_t data_offset, size_t data_length, void *p_data, size_t *p_data_length)
Retrieve the value associated with a provided uid.
psa_status_t psa_its_remove(psa_storage_uid_t uid)
Remove the provided key and its associated data from the storage.
psa_status_t psa_its_get_info(psa_storage_uid_t uid, struct psa_storage_info_t *p_info)
Retrieve the metadata about the provided uid.
This file includes common definitions for PSA storage.
uint32_t psa_storage_create_flags_t
Flags used when creating a data entry.
uint64_t psa_storage_uid_t
A type for UIDs used for identifying data.
A container for metadata associated with a specific uid.