psa_format_key_data_for_storage() function
Formats key data and metadata for persistent storage
Arguments
data
Buffer containing the key data.
data_length
Length of the key data buffer.
attr
The core attributes of the key.
storage_data
Output buffer for the formatted data.