psa_parse_key_data_from_storage() function
Parses persistent storage data into key data and metadata
Arguments
storage_data
Buffer for the storage data.
storage_data_length
Length of the storage data buffer
key_data
On output, pointer to a newly allocated buffer containing the key data. This must be freed using psa_free_persistent_key_data()
key_data_length
Length of the key data buffer
attr
On success, the attribute structure is filled with the loaded key metadata.
Return value
#PSA_SUCCESS \emptydescription #PSA_ERROR_INSUFFICIENT_MEMORY \emptydescription #PSA_ERROR_DATA_INVALID \emptydescription