Replace PSA error code definitions with the ones defined in PSA spec
diff --git a/library/psa_crypto_storage_file.c b/library/psa_crypto_storage_file.c
index 87420be..a6e732d 100644
--- a/library/psa_crypto_storage_file.c
+++ b/library/psa_crypto_storage_file.c
@@ -118,7 +118,7 @@
key_id_to_location( key, slot_location, MAX_LOCATION_LEN );
if( psa_is_key_present_in_storage( key ) == 1 )
- return( PSA_ERROR_OCCUPIED_SLOT );
+ return( PSA_ERROR_ALREADY_EXISTS );
file = fopen( temp_location, "wb" );
if( file == NULL )
@@ -186,7 +186,7 @@
file = fopen( slot_location, "rb" );
if( file == NULL )
- return( PSA_ERROR_EMPTY_SLOT );
+ return( PSA_ERROR_DOES_NOT_EXIST );
if( fseek( file, 0, SEEK_END ) != 0 )
{