nRF Connect SDK API 2.8.0
Loading...
Searching...
No Matches
internal_trusted_storage.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
10#ifndef PSA_INTERNAL_TRUSTED_STORAGE_H
11#define PSA_INTERNAL_TRUSTED_STORAGE_H
12
13#include <stddef.h>
14#include <stdint.h>
15
16#include "psa/error.h"
17#include "psa/storage_common.h"
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
29#define PSA_ITS_API_VERSION_MAJOR \
30 1 /* The major version number of the \
31 * PSA ITS API \
32 */
33#define PSA_ITS_API_VERSION_MINOR \
34 0 /* The minor version number of the \
35 * PSA ITS API \
36 */
37/* This version of the header file is associated with 1.0 final release. */
38
72psa_status_t psa_its_set(psa_storage_uid_t uid, size_t data_length, const void *p_data,
73 psa_storage_create_flags_t create_flags);
74
111psa_status_t psa_its_get(psa_storage_uid_t uid, size_t data_offset, size_t data_size, void *p_data,
112 size_t *p_data_length);
113
137psa_status_t psa_its_get_info(psa_storage_uid_t uid, struct psa_storage_info_t *p_info);
138
160psa_status_t psa_its_remove(psa_storage_uid_t uid);
161
165#ifdef __cplusplus
166}
167#endif
168
169#endif /* PSA_INTERNAL_TRUSTED_STORAGE_H */
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_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.
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.