HAL
HAL_HMACEx_SHA1_Step2_3_DMA() is only used within HAL.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesHALHAL_HMACEx_SHA1_Step2_3_DMA()

HAL_HMACEx_SHA1_Step2_3_DMA() function

SHA1 HMAC step 2 wrap-up and step 3 completion in multi-buffer DMA mode.

Syntax

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

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 2 consists in writing the message text in the Peripheral, step 3 consists in writing the outer hash function key. The API wraps up the HMAC step 2 in processing the buffer entered as input parameter (the input buffer must be the last one of the multi-buffer thread) then carries out HMAC step 3. 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. Once the DMA transfers are finished (indicated by hhash->State set back to HAL_HASH_STATE_READY), HAL_HASHEx_SHA256_Finish() API must be called to retrieve the computed digest.

References

LocationText
stm32f4xx_hal_hash_ex.c:879
HAL_StatusTypeDef HAL_HMACEx_SHA1_Step2_3_DMA(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size)
stm32f4xx_hal_hash_ex.h:144
HAL_StatusTypeDef HAL_HMACEx_SHA1_Step2_3_DMA(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);

Call Tree

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