TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
internal_trusted_storage.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
11 #ifndef PSA_INTERNAL_TRUSTED_STORAGE_H
12 #define PSA_INTERNAL_TRUSTED_STORAGE_H
13 
14 #include <stddef.h>
15 #include <stdint.h>
16 
17 #include "psa/error.h"
18 #include "psa/storage_common.h"
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 #define PSA_ITS_API_VERSION_MAJOR 1
26 #define PSA_ITS_API_VERSION_MINOR 0
29 // This version of the header file is associated with 1.0 final release.
30 
65  size_t data_length,
66  const void *p_data,
67  psa_storage_create_flags_t create_flags);
68 
106  size_t data_offset,
107  size_t data_size,
108  void *p_data,
109  size_t *p_data_length);
110 
135  struct psa_storage_info_t *p_info);
136 
159 
160 #ifdef __cplusplus
161 }
162 #endif
163 
164 #endif // PSA_INTERNAL_TRUSTED_STORAGE_H
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.
psa_status_t psa_its_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.
psa_status_t psa_its_remove(psa_storage_uid_t uid)
Remove the provided uid and its associated data from the storage.
Standard error codes for the SPM and RoT Services.
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.
uint64_t psa_storage_uid_t
uint32_t psa_storage_create_flags_t
int32_t psa_status_t
Function return status.
Definition: crypto_types.h:43