155#define PSA_KEY_LIFETIME_VOLATILE ((psa_key_lifetime_t)0x00000000)
170#define PSA_KEY_LIFETIME_PERSISTENT ((psa_key_lifetime_t)0x00000001)
177#define PSA_KEY_PERSISTENCE_VOLATILE ((psa_key_persistence_t)0x00)
184#define PSA_KEY_PERSISTENCE_DEFAULT ((psa_key_persistence_t)0x01)
191#define PSA_KEY_PERSISTENCE_READ_ONLY ((psa_key_persistence_t)0xff)
201#define PSA_KEY_LOCATION_LOCAL_STORAGE ((psa_key_location_t)0x000000)
214#define PSA_KEY_LOCATION_PRIMARY_SECURE_ELEMENT ((psa_key_location_t)0x000001)
219#define PSA_KEY_LOCATION_VENDOR_FLAG ((psa_key_location_t)0x800000)
224#define PSA_KEY_LOCATION_SE_MIN (PSA_KEY_LOCATION_VENDOR_FLAG)
229#define PSA_KEY_LOCATION_SE_MAX ((psa_key_location_t)0x8000ff)
236#define PSA_KEY_LIFETIME_GET_PERSISTENCE(lifetime) \
237 ((psa_key_persistence_t)((lifetime) & 0x000000ff))
244#define PSA_KEY_LIFETIME_GET_LOCATION(lifetime) \
245 ((psa_key_location_t)((lifetime) >> 8))
262#define PSA_KEY_LIFETIME_IS_VOLATILE(lifetime) \
263 (PSA_KEY_LIFETIME_GET_PERSISTENCE(lifetime) == PSA_KEY_PERSISTENCE_VOLATILE)
273#define PSA_KEY_LIFETIME_FROM_PERSISTENCE_AND_LOCATION(persistence, location) \
274 ((location) << 8 | (persistence))
uint8_t psa_key_persistence_t
Encoding of key persistence levels.
uint32_t psa_key_location_t
Encoding of key location indicators.
uint32_t psa_key_lifetime_t
Encoding of key lifetimes.