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
![]()
status = psa_parse_key_data_from_storage(loaded_data, storage_data_length,
psa_parse_key_data_from_storage() is called by 1 function and calls 4 functions:
![]()
psa_parse_key_data_from_storage()
psa_parse_key_data_from_storage() reads 8 variables and writes 6 variables:
![]()
psa_parse_key_data_from_storage()