HAL
HAL_HMAC_MD5_Start_DMA() is only used within HAL.
 
Symbols
loading...
Files
loading...

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.

Syntax

HAL_StatusTypeDef HAL_HMAC_MD5_Start_DMA(HASH_HandleTypeDef *hhash,     uint8_t *pInBuffer,     uint32_t Size);
Implemented in stm32f4xx_hal_hash.c:1302

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.

References

LocationText
stm32f4xx_hal_hash.c:1302
HAL_StatusTypeDef HAL_HMAC_MD5_Start_DMA(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size)
stm32f4xx_hal_hash.h:566
HAL_StatusTypeDef HAL_HMAC_MD5_Start_DMA(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);

Call Tree

Functions called by HAL_HMAC_MD5_Start_DMA()
HAL_HMAC_MD5_Start_DMA()
all items filtered out
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()
all items filtered out