cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U5 + TrustZone enabled, mbedTLS and X-CUBE-CRYPTOLIB return incorrect SHA256.

linglitel
Associate

STM32U585 

When TrustZone is enabled, X-CUBE-CRYPTOLIB produces incorrect SHA256 hash values.
Additionally, mbedTLS generates incorrect public keys when creating ECDSA key pairs, and this issue is 100% reproducible.
Neither hardware acceleration is enabled, and both mbedTLS and X-CUBE-mbedTLS have been correctly configured.
When TrustZone is not enabled, both libraries work correctly without any issues.

I have searched the internet, but I couldn't find any information related to this issue.

I have submitted a support ticket, but they directed me to seek help through the community.
I believe this is a technical issue, but I am unable to resolve it myself. What should I do next?
Thank you.

rtaImage.png

rtaImage.png

rtaImage.png

  

1 REPLY 1
CMYL
ST Employee

Hi @linglitel 

Which versions of MbedTLS and X-Cube-CryptoLib are used ?

Can you provide minimal test project ?

 

Best Regards