diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 84070c1cc..4bd2d13d2 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -1231,9 +1231,9 @@ static psa_status_t psa_internal_export_key( const psa_key_slot_t *slot, drv->key_management->p_export ); if( method == NULL ) return( PSA_ERROR_NOT_SUPPORTED ); - return( ( *method )( drv_context, - slot->data.se.slot_number, - data, data_size, data_length ) ); + return( method( drv_context, + slot->data.se.slot_number, + data, data_size, data_length ) ); } #endif /* MBEDTLS_PSA_CRYPTO_SE_C */ diff --git a/library/psa_crypto_se.c b/library/psa_crypto_se.c index 648022aed..e6dbe3241 100644 --- a/library/psa_crypto_se.c +++ b/library/psa_crypto_se.c @@ -211,10 +211,10 @@ psa_status_t psa_find_se_slot_for_key( if( p_allocate == NULL ) return( PSA_ERROR_NOT_SUPPORTED ); - status = ( *p_allocate )( &driver->context, - driver->internal.persistent_data, - attributes, - slot_number ); + status = p_allocate( &driver->context, + driver->internal.persistent_data, + attributes, + slot_number ); return( status ); }