Lines Matching refs:lifetime
2297 /** The default lifetime for volatile keys.
2302 * A key with this lifetime is typically stored in the RAM area of the
2310 /** The default lifetime for persistent keys.
2318 * This lifetime value is the default storage area for the calling
2342 #define PSA_KEY_LIFETIME_GET_PERSISTENCE(lifetime) \
2343 ((psa_key_persistence_t) ((lifetime) & 0x000000ff))
2345 #define PSA_KEY_LIFETIME_GET_LOCATION(lifetime) \
2346 ((psa_key_location_t) ((lifetime) >> 8))
2348 /** Whether a key lifetime indicates that the key is volatile.
2359 * \param lifetime The lifetime value to query (value of type
2364 #define PSA_KEY_LIFETIME_IS_VOLATILE(lifetime) \
2365 (PSA_KEY_LIFETIME_GET_PERSISTENCE(lifetime) == \
2368 /** Whether a key lifetime indicates that the key is read-only.
2377 * lifetime. High-privilege code can destroy the key even though the
2380 * \param lifetime The lifetime value to query (value of type
2385 #define PSA_KEY_LIFETIME_IS_READ_ONLY(lifetime) \
2386 (PSA_KEY_LIFETIME_GET_PERSISTENCE(lifetime) == \
2389 /** Construct a lifetime from a persistence level and a location.
2396 * \return The constructed lifetime value.
2558 * For keys with the lifetime #PSA_KEY_LIFETIME_VOLATILE or