Zephyr API Documentation 4.0.0
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
24
27
29#define PSA_STORAGE_FLAG_NONE 0u
31#define PSA_STORAGE_FLAG_WRITE_ONCE (1u << 0)
33#define PSA_STORAGE_FLAG_NO_CONFIDENTIALITY (1u << 1)
35#define PSA_STORAGE_FLAG_NO_REPLAY_PROTECTION (1u << 2)
36
46
48#define PSA_STORAGE_SUPPORT_SET_EXTENDED (1u << 0)
49
51#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:26
uint64_t psa_storage_uid_t
UID type for identifying entries.
Definition storage_common.h:23
Metadata associated with a specific entry.
Definition storage_common.h:38
size_t capacity
The allocated capacity of the storage associated with an entry.
Definition storage_common.h:40
size_t size
The size of an entry's data.
Definition storage_common.h:42
psa_storage_create_flags_t flags
The flags used when the entry was created.
Definition storage_common.h:44
Return values of the PSA Secure Storage API.