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
20#include <psa/error.h>
21#include <stddef.h>
22
24#ifdef CONFIG_SECURE_STORAGE_64_BIT_UID
26#else
28#endif
29
32
34#define PSA_STORAGE_FLAG_NONE 0u
36#define PSA_STORAGE_FLAG_WRITE_ONCE (1u << 0)
38#define PSA_STORAGE_FLAG_NO_CONFIDENTIALITY (1u << 1)
40#define PSA_STORAGE_FLAG_NO_REPLAY_PROTECTION (1u << 2)
41
51
53#define PSA_STORAGE_SUPPORT_SET_EXTENDED (1u << 0)
54
56#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:31
uint32_t psa_storage_uid_t
UID type for identifying entries.
Definition storage_common.h:27
Metadata associated with a specific entry.
Definition storage_common.h:43
size_t capacity
The allocated capacity of the storage associated with an entry.
Definition storage_common.h:45
size_t size
The size of an entry's data.
Definition storage_common.h:47
psa_storage_create_flags_t flags
The flags used when the entry was created.
Definition storage_common.h:49
Return values of the PSA Secure Storage API.