cancel
Showing results for 
Search instead for 
Did you mean: 

Calculate MD5 Hash in chunk

matteoorlandini
Visitor

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

1 ACCEPTED SOLUTION

Accepted Solutions
matteoorlandini
Visitor

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

View solution in original post

1 REPLY 1
matteoorlandini
Visitor

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