PSA_KEY_LIFETIME_IS_VOLATILE macro
Whether a key lifetime indicates that the key is volatile. A volatile key is automatically destroyed by the implementation when the application instance terminates. In particular, a volatile key is automatically destroyed on a power reset of the device. A key that is not volatile is persistent. Persistent keys are preserved until the application explicitly destroys them or until an implementation-specific device management event occurs (for example, a factory reset).
Arguments
lifetime
The lifetime value to query (value of type ::psa_key_lifetime_t).
Return value
\c 1 if the key is volatile, otherwise \c 0.