HAL_HMAC_MD5_Start_DMA() function
Initialize the HASH peripheral in HMAC MD5 mode then initiate the required DMA transfers to feed the key and the input buffer to the Peripheral.
Arguments
hhash
HASH handle.
pInBuffer
pointer to the input buffer (buffer to be hashed).
Size
length of the input buffer in bytes.
Return value
HAL status
Notes
Once the DMA transfers are finished (indicated by hhash->State set back to HAL_HASH_STATE_READY), HAL_HASH_MD5_Finish() API must be called to retrieve the computed digest. Same key is used for the inner and the outer hash functions; pointer to key and key size are respectively stored in hhash->Init.pKey and hhash->Init.KeySize. If MDMAT bit is set before calling this function (multi-buffer HASH processing case), the input buffer size (in bytes) must be a multiple of 4 otherwise, the HASH digest computation is corrupted. For the processing of the last buffer of the thread, MDMAT bit must be reset and the buffer length (in bytes) doesn't have to be a multiple of 4.
Functions called by HAL_HMAC_MD5_Start_DMA()
HAL_HMAC_MD5_Start_DMA()
Data read by HAL_HMAC_MD5_Start_DMA()
HAL_HMAC_MD5_Start_DMA()
Type of HAL_HMAC_MD5_Start_DMA()
HAL_HMAC_MD5_Start_DMA()