psa: Rename psa_export_rsa/ecp_key to mbedtls_psa_rsa/ecp_export_key

Rename psa_export_rsa/ecp_key to
mbedtls_psa_rsa/ecp_export_key before to move them to
RSA/ECP specific PSA crypto C files.

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
Ronald Cron 2020-11-26 16:45:24 +01:00
parent 9085708371
commit 3c8ca3ad00

View File

@ -638,7 +638,7 @@ exit:
* \param[in] data_size The length of the buffer to export to
* \param[out] data_length The amount of bytes written to \p data
*/
static psa_status_t psa_export_rsa_key( psa_key_type_t type,
static psa_status_t mbedtls_psa_rsa_export_key( psa_key_type_t type,
mbedtls_rsa_context *rsa,
uint8_t *data,
size_t data_size,
@ -730,7 +730,7 @@ static psa_status_t psa_import_rsa_key( psa_key_slot_t *slot,
goto exit;
}
status = psa_export_rsa_key( slot->attr.type,
status = mbedtls_psa_rsa_export_key( slot->attr.type,
rsa,
output,
data_length,
@ -876,7 +876,7 @@ exit:
* \param[in] data_size The length of the buffer to export to
* \param[out] data_length The amount of bytes written to \p data
*/
static psa_status_t psa_export_ecp_key( psa_key_type_t type,
static psa_status_t mbedtls_psa_ecp_export_key( psa_key_type_t type,
mbedtls_ecp_keypair *ecp,
uint8_t *data,
size_t data_size,
@ -963,7 +963,7 @@ static psa_status_t psa_import_ecp_key( psa_key_slot_t *slot,
goto exit;
}
status = psa_export_ecp_key( slot->attr.type,
status = mbedtls_psa_ecp_export_key( slot->attr.type,
ecp,
output,
data_length,
@ -1780,7 +1780,7 @@ static psa_status_t psa_internal_export_key( const psa_key_slot_t *slot,
if( status != PSA_SUCCESS )
return( status );
status = psa_export_rsa_key( PSA_KEY_TYPE_RSA_PUBLIC_KEY,
status = mbedtls_psa_rsa_export_key( PSA_KEY_TYPE_RSA_PUBLIC_KEY,
rsa,
data,
data_size,
@ -1808,9 +1808,9 @@ static psa_status_t psa_internal_export_key( const psa_key_slot_t *slot,
if( status != PSA_SUCCESS )
return( status );
status = psa_export_ecp_key( PSA_KEY_TYPE_ECC_PUBLIC_KEY(
PSA_KEY_TYPE_ECC_GET_FAMILY(
slot->attr.type ) ),
status = mbedtls_psa_ecp_export_key(
PSA_KEY_TYPE_ECC_PUBLIC_KEY(
PSA_KEY_TYPE_ECC_GET_FAMILY( slot->attr.type ) ),
ecp,
data,
data_size,
@ -6621,7 +6621,7 @@ static psa_status_t psa_generate_key_internal(
return( status );
}
status = psa_export_rsa_key( type,
status = mbedtls_psa_rsa_export_key( type,
&rsa,
slot->key.data,
bytes,