Skip to main content
Visitor II
July 9, 2025
Solved

Calculate MD5 Hash in chunk

  • July 9, 2025
  • 1 reply
  • 270 views

Hello, 

I'm trying to use the HAL function to calculate a file MD5 on my STM32H750 MCU. I successully managed to calculate the MD5 of little files using HAL_HASH_MD5_Start. Now I want to calculate the MD5 of a large file, so I'm not able to store all the file content in RAM. How to use the HAL functions to calculate the MD5 in chunk?

 

Thank you in advance,

Matteo

    This topic has been closed for replies.
    Best answer by matteoorlandini

    I solved it using HAL_HASH_MD5_Accmlt and HAL_HASH_MD5_Accmlt_End for the last chunk.

    1 reply

    matteoorlandiniAuthorAnswer
    Visitor II
    July 9, 2025

    I solved it using HAL_HASH_MD5_Accmlt and HAL_HASH_MD5_Accmlt_End for the last chunk.