152 #define PSA_KEY_LIFETIME_VOLATILE ((psa_key_lifetime_t)0x00000000)
167 #define PSA_KEY_LIFETIME_PERSISTENT ((psa_key_lifetime_t)0x00000001)
174 #define PSA_KEY_PERSISTENCE_VOLATILE ((psa_key_persistence_t)0x00)
181 #define PSA_KEY_PERSISTENCE_DEFAULT ((psa_key_persistence_t)0x01)
188 #define PSA_KEY_PERSISTENCE_READ_ONLY ((psa_key_persistence_t)0xff)
198 #define PSA_KEY_LOCATION_LOCAL_STORAGE ((psa_key_location_t)0x000000)
211 #define PSA_KEY_LOCATION_PRIMARY_SECURE_ELEMENT ((psa_key_location_t)0x000001)
216 #define PSA_KEY_LOCATION_VENDOR_FLAG ((psa_key_location_t)0x800000)
221 #define PSA_KEY_LOCATION_SE_MIN (PSA_KEY_LOCATION_VENDOR_FLAG)
226 #define PSA_KEY_LOCATION_SE_MAX ((psa_key_location_t)0x8000ff)
233 #define PSA_KEY_LIFETIME_GET_PERSISTENCE(lifetime) \
234 ((psa_key_persistence_t)((lifetime) & 0x000000ff))
241 #define PSA_KEY_LIFETIME_GET_LOCATION(lifetime) \
242 ((psa_key_location_t)((lifetime) >> 8))
259 #define PSA_KEY_LIFETIME_IS_VOLATILE(lifetime) \
260 (PSA_KEY_LIFETIME_GET_PERSISTENCE(lifetime) == PSA_KEY_PERSISTENCE_VOLATILE)
270 #define PSA_KEY_LIFETIME_FROM_PERSISTENCE_AND_LOCATION(persistence, location) \
271 ((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.