feat(drivers): Support persistent ESP-RSA DS driver

This commit is contained in:
harshal.patil
2026-07-09 15:39:54 +08:00
committed by Ashish Sharma
parent 7f147a9e59
commit 9c12ce21cf
@@ -921,8 +921,9 @@ static inline psa_status_t psa_driver_wrapper_get_key_buffer_size_from_key_data(
#endif /* defined(ESP_ECDSA_DRIVER_ENABLED) && defined(ESP_ECDSA_SIGN_DRIVER_ENABLED) */
#if defined(ESP_RSA_DS_DRIVER_ENABLED)
case PSA_KEY_LOCATION_ESP_RSA_DS:
*key_buffer_size = esp_rsa_ds_opaque_size_function( key_type,
PSA_BYTES_TO_BITS( data_length ) );
*key_buffer_size = esp_rsa_ds_opaque_size_function( attributes,
key_type,
data, data_length );
return( ( *key_buffer_size != 0 ) ?
PSA_SUCCESS : PSA_ERROR_NOT_SUPPORTED );
#endif /* ESP_RSA_DS_DRIVER_ENABLED */