mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-10-31 03:30:35 -04:00 
			
		
		
		
	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:
		
							parent
							
								
									9085708371
								
							
						
					
					
						commit
						3c8ca3ad00
					
				| @ -638,7 +638,7 @@ exit: | |||||||
|  * \param[in] data_size     The length of the buffer to export to |  * \param[in] data_size     The length of the buffer to export to | ||||||
|  * \param[out] data_length  The amount of bytes written to \p data |  * \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, |                                                 mbedtls_rsa_context *rsa, | ||||||
|                                                 uint8_t *data, |                                                 uint8_t *data, | ||||||
|                                                 size_t data_size, |                                                 size_t data_size, | ||||||
| @ -730,7 +730,7 @@ static psa_status_t psa_import_rsa_key( psa_key_slot_t *slot, | |||||||
|         goto exit; |         goto exit; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     status = psa_export_rsa_key( slot->attr.type, |     status = mbedtls_psa_rsa_export_key( slot->attr.type, | ||||||
|                                          rsa, |                                          rsa, | ||||||
|                                          output, |                                          output, | ||||||
|                                          data_length, |                                          data_length, | ||||||
| @ -876,7 +876,7 @@ exit: | |||||||
|  * \param[in] data_size     The length of the buffer to export to |  * \param[in] data_size     The length of the buffer to export to | ||||||
|  * \param[out] data_length  The amount of bytes written to \p data |  * \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, |                                                 mbedtls_ecp_keypair *ecp, | ||||||
|                                                 uint8_t *data, |                                                 uint8_t *data, | ||||||
|                                                 size_t data_size, |                                                 size_t data_size, | ||||||
| @ -963,7 +963,7 @@ static psa_status_t psa_import_ecp_key( psa_key_slot_t *slot, | |||||||
|         goto exit; |         goto exit; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     status = psa_export_ecp_key( slot->attr.type, |     status = mbedtls_psa_ecp_export_key( slot->attr.type, | ||||||
|                                          ecp, |                                          ecp, | ||||||
|                                          output, |                                          output, | ||||||
|                                          data_length, |                                          data_length, | ||||||
| @ -1780,7 +1780,7 @@ static psa_status_t psa_internal_export_key( const psa_key_slot_t *slot, | |||||||
|             if( status != PSA_SUCCESS ) |             if( status != PSA_SUCCESS ) | ||||||
|                 return( status ); |                 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, |                                                  rsa, | ||||||
|                                                  data, |                                                  data, | ||||||
|                                                  data_size, |                                                  data_size, | ||||||
| @ -1808,9 +1808,9 @@ static psa_status_t psa_internal_export_key( const psa_key_slot_t *slot, | |||||||
|             if( status != PSA_SUCCESS ) |             if( status != PSA_SUCCESS ) | ||||||
|                 return( status ); |                 return( status ); | ||||||
| 
 | 
 | ||||||
|             status = psa_export_ecp_key( PSA_KEY_TYPE_ECC_PUBLIC_KEY( |             status = mbedtls_psa_ecp_export_key( | ||||||
|                                             PSA_KEY_TYPE_ECC_GET_FAMILY( |                 PSA_KEY_TYPE_ECC_PUBLIC_KEY( | ||||||
|                                                 slot->attr.type ) ), |                     PSA_KEY_TYPE_ECC_GET_FAMILY( slot->attr.type ) ), | ||||||
|                 ecp, |                 ecp, | ||||||
|                 data, |                 data, | ||||||
|                 data_size, |                 data_size, | ||||||
| @ -6621,7 +6621,7 @@ static psa_status_t psa_generate_key_internal( | |||||||
|             return( status ); |             return( status ); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         status = psa_export_rsa_key( type, |         status = mbedtls_psa_rsa_export_key( type, | ||||||
|                                              &rsa, |                                              &rsa, | ||||||
|                                              slot->key.data, |                                              slot->key.data, | ||||||
|                                              bytes, |                                              bytes, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ronald Cron
						Ronald Cron