Fix build error with MSVC on 64-bit systems
Explicitly cast size_t to uint32_t.
diff --git a/library/psa_crypto_storage.c b/library/psa_crypto_storage.c
index 6c2e865..840f418 100644
--- a/library/psa_crypto_storage.c
+++ b/library/psa_crypto_storage.c
@@ -101,7 +101,7 @@
if( status != PSA_SUCCESS )
return( status );
- status = psa_its_get( data_identifier, 0, data_size, data );
+ status = psa_its_get( data_identifier, 0, (uint32_t) data_size, data );
return( status );
}
@@ -146,7 +146,7 @@
if( psa_is_key_present_in_storage( key ) == 1 )
return( PSA_ERROR_ALREADY_EXISTS );
- status = psa_its_set( data_identifier, data_length, data, 0 );
+ status = psa_its_set( data_identifier, (uint32_t) data_length, data, 0 );
if( status != PSA_SUCCESS )
{
return( PSA_ERROR_STORAGE_FAILURE );