Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
storage_common.h
Go to the documentation of this file.
1/* Copyright (c) 2024 Nordic Semiconductor
2 * SPDX-License-Identifier: Apache-2.0
3 */
4#ifndef PSA_STORAGE_COMMON_H
5#define PSA_STORAGE_COMMON_H
19#include <psa/error.h>
20#include <stddef.h>
21
23#ifdef CONFIG_SECURE_STORAGE_64_BIT_UID
25#else
27#endif
28
31
33#define PSA_STORAGE_FLAG_NONE 0u
35#define PSA_STORAGE_FLAG_WRITE_ONCE (1u << 0)
37#define PSA_STORAGE_FLAG_NO_CONFIDENTIALITY (1u << 1)
39#define PSA_STORAGE_FLAG_NO_REPLAY_PROTECTION (1u << 2)
40
50
52#define PSA_STORAGE_SUPPORT_SET_EXTENDED (1u << 0)
53
55#endif
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
uint32_t psa_storage_create_flags_t
Flags used when creating an entry.
Definition storage_common.h:30
uint32_t psa_storage_uid_t
UID type for identifying entries.
Definition storage_common.h:26
Metadata associated with a specific entry.
Definition storage_common.h:42
size_t capacity
The allocated capacity of the storage associated with an entry.
Definition storage_common.h:44
size_t size
The size of an entry's data.
Definition storage_common.h:46
psa_storage_create_flags_t flags
The flags used when the entry was created.
Definition storage_common.h:48
Return values of the PSA Secure Storage API.