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

HASH_Start_DMA() function

Initialize the HASH peripheral then initiate a DMA transfer to feed the input buffer to the Peripheral.

Syntax

HAL_StatusTypeDef HASH_Start_DMA(HASH_HandleTypeDef *hhash,     uint8_t *pInBuffer,     uint32_t Size,     uint32_t Algorithm);
Implemented in stm32f4xx_hal_hash.c:2972

Arguments

hhash

HASH handle.

pInBuffer

pointer to the input buffer (buffer to be hashed).

Size

length of the input buffer in bytes.

Algorithm

HASH algorithm.

Return value

HAL status

Notes

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.

Call Tree

Functions calling HASH_Start_DMA()
Functions called by HASH_Start_DMA()
HASH_Start_DMA()
all items filtered out
Type of HASH_Start_DMA()
HASH_Start_DMA()