1 /* Copyright (c) 2024 Nordic Semiconductor 2 * SPDX-License-Identifier: Apache-2.0 3 */ 4 #ifndef SECURE_STORAGE_COMMON_H 5 #define SECURE_STORAGE_COMMON_H 6 7 /** @file zephyr/secure_storage/common.h Common definitions of the secure storage subsystem. */ 8 #include <stdint.h> 9 10 /* A size-optimized version of `psa_storage_create_flags_t`. Used for storing the `create_flags`. */ 11 typedef uint8_t secure_storage_packed_create_flags_t; 12 13 #define SECURE_STORAGE_ALL_CREATE_FLAGS \ 14 (PSA_STORAGE_FLAG_NONE | \ 15 PSA_STORAGE_FLAG_WRITE_ONCE | \ 16 PSA_STORAGE_FLAG_NO_CONFIDENTIALITY | \ 17 PSA_STORAGE_FLAG_NO_REPLAY_PROTECTION) 18 19 #endif 20