Skip to main content
Visitor II
January 23, 2020
Question

HAL_HASHEx_SHA256_Start return HAL_OK but process is suspended

  • January 23, 2020
  • 1 reply
  • 940 views

I am using HAL Version 1.6 as mentionned in the stm32h7xx_hal.c file.

I want to use the HASH function. Refering to the example, the HAL_HASHEx_SHA256_Start is a one time call function that return the HASH of the provided buffer.

However, despite the API return HAL_OK, the hash returned is empty. When debugging, I see the internal state going to SUSPENDED. In the previous version of the HAL I was using this was not the case. I need to either monitor the State and relaunch the HAL_HASHEx_SHA256_Start of maybe call the HAL_HASHEx_SHA256_Finish. This is quite unclear, and of course in either case, the provided example is not really accurate. The call of the Finish function seems to be used when using IT, DMA ,... and the Start function is supposed to be blocking as I understand.

Hope you can help me.

Regards.

    This topic has been closed for replies.

    1 reply

    SBACOAuthor
    Visitor II
    February 7, 2020

    I am sorry to push, but can I expect a feedback on how to proceed to use properly this API ?

    Regards