From 73bf56ebdfe69696f686a38fd7197ab287d7d7e6 Mon Sep 17 00:00:00 2001 From: "harshal.patil" Date: Mon, 13 Apr 2026 10:55:45 +0530 Subject: [PATCH] fix(drivers): Support internal driver key source-specific storage layout --- tf-psa-crypto/core/psa_crypto_driver_wrappers.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tf-psa-crypto/core/psa_crypto_driver_wrappers.h b/tf-psa-crypto/core/psa_crypto_driver_wrappers.h index 955b181e5a..8475c35df9 100644 --- a/tf-psa-crypto/core/psa_crypto_driver_wrappers.h +++ b/tf-psa-crypto/core/psa_crypto_driver_wrappers.h @@ -914,8 +914,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) */ @@ -929,8 +929,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) */