From 231bf5b693afd8b803d5a14d35f973a8cb2a3169 Mon Sep 17 00:00:00 2001 From: Oren Cohen Date: Mon, 28 Jan 2019 14:50:31 +0200 Subject: [PATCH] Use new ITS uid type ITS switched from using uint32_t to psa_its_uid_t (uint64_t) --- library/psa_crypto_storage_its.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/library/psa_crypto_storage_its.c b/library/psa_crypto_storage_its.c index 1c7e1711f..1873c69cc 100644 --- a/library/psa_crypto_storage_its.c +++ b/library/psa_crypto_storage_its.c @@ -67,7 +67,7 @@ static psa_status_t its_to_psa_error( psa_its_status_t ret ) } } -static uint32_t psa_its_identifier_of_slot( psa_key_id_t key ) +static psa_its_uid_t psa_its_identifier_of_slot( psa_key_id_t key ) { return( key ); } @@ -77,7 +77,7 @@ psa_status_t psa_crypto_storage_load( const psa_key_id_t key, uint8_t *data, { psa_its_status_t ret; psa_status_t status; - uint32_t data_identifier = psa_its_identifier_of_slot( key ); + psa_its_uid_t data_identifier = psa_its_identifier_of_slot( key ); struct psa_its_info_t data_identifier_info; ret = psa_its_get_info( data_identifier, &data_identifier_info ); @@ -94,7 +94,7 @@ psa_status_t psa_crypto_storage_load( const psa_key_id_t key, uint8_t *data, int psa_is_key_present_in_storage( const psa_key_id_t key ) { psa_its_status_t ret; - uint32_t data_identifier = psa_its_identifier_of_slot( key ); + psa_its_uid_t data_identifier = psa_its_identifier_of_slot( key ); struct psa_its_info_t data_identifier_info; ret = psa_its_get_info( data_identifier, &data_identifier_info ); @@ -110,7 +110,7 @@ psa_status_t psa_crypto_storage_store( const psa_key_id_t key, { psa_its_status_t ret; psa_status_t status; - uint32_t data_identifier = psa_its_identifier_of_slot( key ); + psa_its_uid_t data_identifier = psa_its_identifier_of_slot( key ); struct psa_its_info_t data_identifier_info; if( psa_is_key_present_in_storage( key ) == 1 ) @@ -145,7 +145,7 @@ exit: psa_status_t psa_destroy_persistent_key( const psa_key_id_t key ) { psa_its_status_t ret; - uint32_t data_identifier = psa_its_identifier_of_slot( key ); + psa_its_uid_t data_identifier = psa_its_identifier_of_slot( key ); struct psa_its_info_t data_identifier_info; ret = psa_its_get_info( data_identifier, &data_identifier_info ); @@ -167,7 +167,7 @@ psa_status_t psa_crypto_storage_get_data_length( const psa_key_id_t key, { psa_its_status_t ret; psa_status_t status; - uint32_t data_identifier = psa_its_identifier_of_slot( key ); + psa_its_uid_t data_identifier = psa_its_identifier_of_slot( key ); struct psa_its_info_t data_identifier_info; ret = psa_its_get_info( data_identifier, &data_identifier_info );