nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
storage_common.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
7/* This file includes common definitions for PSA storage
8 */
9
10#ifndef PSA_STORAGE_COMMON_H
11#define PSA_STORAGE_COMMON_H
12
13#include <stddef.h>
14#include <stdint.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
21
22typedef uint64_t psa_storage_uid_t;
23
24/* Flags */
25
26#define PSA_STORAGE_FLAG_NONE 0u
27#define PSA_STORAGE_FLAG_WRITE_ONCE (1u << 0)
28#define PSA_STORAGE_FLAG_NO_CONFIDENTIALITY (1u << 1)
29#define PSA_STORAGE_FLAG_NO_REPLAY_PROTECTION (1u << 2)
30
31/* A container for metadata associated with a specific uid */
32
38
39#define PSA_STORAGE_SUPPORT_SET_EXTENDED (1u << 0)
40
41#define PSA_ERROR_INVALID_SIGNATURE ((psa_status_t)-149)
42#define PSA_ERROR_DATA_CORRUPT ((psa_status_t)-152)
43
44#ifdef __cplusplus
45}
46#endif
47
48#endif /* PSA_STORAGE_COMMON_H */
uint32_t psa_storage_create_flags_t
Definition storage_common.h:20
uint64_t psa_storage_uid_t
Definition storage_common.h:22
size_t capacity
Definition storage_common.h:34
size_t size
Definition storage_common.h:35
psa_storage_create_flags_t flags
Definition storage_common.h:36
Definition storage_common.h:33