Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
storage_common.h File Reference

Common definitions of the PSA Secure Storage API. More...

#include <psa/error.h>
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  psa_storage_info_t
 Metadata associated with a specific entry. More...
 
#define PSA_STORAGE_FLAG_NONE   0u
 No flag to pass.
 
#define PSA_STORAGE_FLAG_WRITE_ONCE   (1u << 0)
 The data associated with the UID will not be able to be modified or deleted.
 
#define PSA_STORAGE_FLAG_NO_CONFIDENTIALITY   (1u << 1)
 The data associated with the UID is public, requiring only integrity.
 
#define PSA_STORAGE_FLAG_NO_REPLAY_PROTECTION   (1u << 2)
 The data associated with the UID does not require replay protection.
 
#define PSA_STORAGE_SUPPORT_SET_EXTENDED   (1u << 0)
 Flag indicating that psa_ps_create() and psa_ps_set_extended() are supported.
 
typedef uint64_t psa_storage_uid_t
 UID type for identifying entries.
 
typedef uint32_t psa_storage_create_flags_t
 Flags used when creating an entry.
 

Detailed Description

Common definitions of the PSA Secure Storage API.

Macro Definition Documentation

◆ PSA_STORAGE_FLAG_NO_CONFIDENTIALITY

#define PSA_STORAGE_FLAG_NO_CONFIDENTIALITY   (1u << 1)

The data associated with the UID is public, requiring only integrity.

◆ PSA_STORAGE_FLAG_NO_REPLAY_PROTECTION

#define PSA_STORAGE_FLAG_NO_REPLAY_PROTECTION   (1u << 2)

The data associated with the UID does not require replay protection.

◆ PSA_STORAGE_FLAG_NONE

#define PSA_STORAGE_FLAG_NONE   0u

No flag to pass.

◆ PSA_STORAGE_FLAG_WRITE_ONCE

#define PSA_STORAGE_FLAG_WRITE_ONCE   (1u << 0)

The data associated with the UID will not be able to be modified or deleted.

◆ PSA_STORAGE_SUPPORT_SET_EXTENDED

#define PSA_STORAGE_SUPPORT_SET_EXTENDED   (1u << 0)

Flag indicating that psa_ps_create() and psa_ps_set_extended() are supported.

Typedef Documentation

◆ psa_storage_create_flags_t

Flags used when creating an entry.

◆ psa_storage_uid_t

UID type for identifying entries.