Skip to main content
Associate II
July 3, 2025
Solved

STM32H563 MD5 Hash Support

  • July 3, 2025
  • 2 replies
  • 327 views

Trying to get MD5 hash acceleration working on the Nucleo-H563Zi.

 

I can get SHA1 hash engine to work via bootstrapping a project via CubeMX, but for some reason MD5 is not a selectable option for the hashing algorithm in CubeMX.  All other algorithms can be configured and work, but MD5 is not an option.

 

The Datasheet for the STM32H562/3 says that the Crypto engine offers a MD5 hash, but I can't seem to configure it via CubeMX or by updating the generated code in hash.c to select the MD5 algorithm within MX_Hash_Init().

 

Is MD5 not supported on the H5?  There are no MD5 examples in the github example repo despite the datasheet claiming the crypto/hash accelerator supports MD5.

Best answer by musicmindmachine

Thanks for following up!

You're right, it looks like the 562/562 don't have MD5 as a hashing algo.  I swear I saw it listed in the algorithms, but I guess I misread it from somewhere else.  Thanks

2 replies

TDK
Super User
July 3, 2025

> The Datasheet for the STM32H562/3 says that the Crypto engine offers a MD5 hash

I can't find any information in the datasheet or reference manual which says MD5 algorithm is supported by the HASH peripheral on this chip. Can you provide a link and page number or screenshot?

https://www.st.com/resource/en/datasheet/stm32h562ag.pdf

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
musicmindmachineAuthorBest answer
Associate II
July 3, 2025

Thanks for following up!

You're right, it looks like the 562/562 don't have MD5 as a hashing algo.  I swear I saw it listed in the algorithms, but I guess I misread it from somewhere else.  Thanks