mirror of
https://github.com/espressif/mbedtls.git
synced 2026-06-05 21:14:47 +00:00
fix(drivers): Support internal driver key source-specific storage layout
This commit is contained in:
committed by
Mahavir Jain
parent
b5a5df7d5f
commit
ae71b9e470
@@ -909,8 +909,8 @@ static inline psa_status_t psa_driver_wrapper_get_key_buffer_size_from_key_data(
|
||||
#endif /* PSA_CRYPTO_DRIVER_TEST */
|
||||
#if defined(ESP_ECDSA_DRIVER_ENABLED) && defined(ESP_ECDSA_SIGN_DRIVER_ENABLED)
|
||||
case PSA_KEY_LOCATION_ESP_ECDSA:
|
||||
*key_buffer_size = esp_ecdsa_opaque_size_function( key_type,
|
||||
PSA_BYTES_TO_BITS( data_length ) );
|
||||
*key_buffer_size = esp_ecdsa_opaque_size_function( attributes,
|
||||
key_type, data, data_length );
|
||||
return( ( *key_buffer_size != 0 ) ?
|
||||
PSA_SUCCESS : PSA_ERROR_NOT_SUPPORTED );
|
||||
#endif /* defined(ESP_ECDSA_DRIVER_ENABLED) && defined(ESP_ECDSA_SIGN_DRIVER_ENABLED) */
|
||||
@@ -924,8 +924,8 @@ static inline psa_status_t psa_driver_wrapper_get_key_buffer_size_from_key_data(
|
||||
|
||||
#if defined(ESP_HMAC_OPAQUE_DRIVER_ENABLED)
|
||||
case PSA_KEY_LOCATION_ESP_HMAC:
|
||||
*key_buffer_size = esp_hmac_opaque_size_function(key_type,
|
||||
PSA_BYTES_TO_BITS( data_length ) );
|
||||
*key_buffer_size = esp_hmac_opaque_size_function(attributes,
|
||||
key_type, data, data_length );
|
||||
return( ( *key_buffer_size != 0 ) ?
|
||||
PSA_SUCCESS : PSA_ERROR_NOT_SUPPORTED );
|
||||
#endif /* defined(ESP_HMAC_OPAQUE_DRIVER_ENABLED) */
|
||||
|
||||
Reference in New Issue
Block a user