psa_key_lifetime_is_external() function
Test whether a lifetime designates a key in an external cryptoprocessor.
Arguments
lifetime
The lifetime to test.
Return value
1 The lifetime designates an external key. There should be a registered driver for this lifetime, otherwise the key cannot be created or manipulated. 0 The lifetime designates a key that is volatile or in internal storage.