HAL
HAL_HMACEx_SHA1_Step1_2_DMA() is only used within HAL.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesHALHAL_HMACEx_SHA1_Step1_2_DMA()

HAL_HMACEx_SHA1_Step1_2_DMA() function

SHA1 HMAC step 1 completion and step 2 start in multi-buffer DMA mode.

Syntax

HAL_StatusTypeDef HAL_HMACEx_SHA1_Step1_2_DMA(HASH_HandleTypeDef *hhash,     uint8_t *pInBuffer,     uint32_t Size);
Implemented in stm32f4xx_hal_hash_ex.c:832

Arguments

hhash

HASH handle.

pInBuffer

pointer to the input buffer (message buffer).

Size

length of the input buffer in bytes.

Return value

HAL status

Notes

Step 1 consists in writing the inner hash function key in the Peripheral, step 2 consists in writing the message text. The API carries out the HMAC step 1 then starts step 2 with the first buffer entered to the Peripheral. DCAL bit is not automatically set after the message buffer feeding, allowing other messages DMA transfers to occur. 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. The input buffer size (in bytes) must be a multiple of 4 otherwise, the HASH digest computation is corrupted.

References

LocationText
stm32f4xx_hal_hash_ex.c:832
HAL_StatusTypeDef HAL_HMACEx_SHA1_Step1_2_DMA(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size)
stm32f4xx_hal_hash_ex.h:142
HAL_StatusTypeDef HAL_HMACEx_SHA1_Step1_2_DMA(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);

Call Tree

Functions called by HAL_HMACEx_SHA1_Step1_2_DMA()
HAL_HMACEx_SHA1_Step1_2_DMA()
all items filtered out
Data read by HAL_HMACEx_SHA1_Step1_2_DMA()
Data written by HAL_HMACEx_SHA1_Step1_2_DMA()
HAL_HMACEx_SHA1_Step1_2_DMA()
Type of HAL_HMACEx_SHA1_Step1_2_DMA()
HAL_HMACEx_SHA1_Step1_2_DMA()
all items filtered out