cancel
Showing results for 
Search instead for 
Did you mean: 

Will the example for mbedtls hardware acceleration in STM32U5 be updated?

linglitel
Associate II

When I use mbedtls on my STM32U585 core board without enabling hardware acceleration, it works fine. However, when I follow the instructions in some posts and copy examples, such as the rsa_alt from SBSFU under STM32U5Cube, many errors appear, and it seems difficult to fix. I noticed that the mbedtls in STM32CubeU5 seems to be several versions behind. I also tried using H5 for porting, but the result is still not satisfactory. Will there be new hardware acceleration examples for STM32U585 using STM32-MW-MBEDTLS? Thank you."

2 REPLIES 2
CMYL
ST Employee

Hi @linglitel,

I'm checking internally if there are plans to update the mbedTLS version and provide new hardware acceleration examples for STM32U5.

I guess you know the following link: GitHub - STMicroelectronics/stm32-mw-mbedtls: Mbed TLS is an open source, portable, easy to use, readable and flexible TLS library, and reference implementation of the PSA Cryptography API. 

The stm32-mw-mbedtls  release is v3.6.2_20250204  versus 2.8 release in STM32Cube_FW_U5_V1.7.0.

In the mean time, can you check the last release if it is helpful ?

 

Best Regards

Thank you for your reply.

I have already used this library, and it performs very fast. However, I am not able to determine whether hardware acceleration is actually being used. Due to the large version gap between STM32Cube_FW_U5_V1.7.0 and stm32-mw-mbedtls, I cannot use the examples from STM32Cube_FW_U5_V1.7.0 to enable hardware acceleration properly.

The STM32U585 has powerful security features, and I believe hardware acceleration is essential to fully utilize its capabilities.

At the same time, I found that both stm32-mw-mbedtls and X-CUBE-CRYPTOLIB consistently produce incorrect SHA256 results when TrustZone is enabled. I have already opened a support ticket, but they advised me to seek help through the community.

Could you please help with this issue?