PSA_KEY_USAGE_COPY macro
Whether the key may be copied. This flag allows the use of psa_copy_key() to make a copy of the key with the same policy or a more restrictive policy. For lifetimes for which the key is located in a secure element which enforce the non-exportability of keys, copying a key outside the secure element also requires the usage flag #PSA_KEY_USAGE_EXPORT. Copying the key inside the secure element is permitted with just #PSA_KEY_USAGE_COPY if the secure element supports it. For keys with the lifetime #PSA_KEY_LIFETIME_VOLATILE or #PSA_KEY_LIFETIME_PERSISTENT, the usage flag #PSA_KEY_USAGE_COPY is sufficient to permit the copy.
![]()
PSA_KEY_USAGE_COPY |