EasyManua.ls Logo

ST STM32F2

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
HAL HASH Generic Driver
UM1940
276/1371
DocID028236 Rev 2
Function description
Returns the computed digest in MD5 mode.
Parameters
hhash: pointer to a HASH_HandleTypeDef structure that
contains the configuration information for HASH module
pOutBuffer: Pointer to the computed digest. Its size must be
16 bytes.
Timeout: Timeout value
Return values
HAL: status
HAL_HMAC_SHA1_Start_DMA
Function name
HAL_StatusTypeDef HAL_HMAC_SHA1_Start_DMA
(HASH_HandleTypeDef * hhash, uint8_t * pInBuffer, uint32_t
Size)
Function description
Initializes the HASH peripheral in HMAC SHA1 mode then enables
DMA to control data transfer.
Parameters
hhash: pointer to a HASH_HandleTypeDef structure that
contains the configuration information for HASH module
pInBuffer: Pointer to the input buffer (buffer to be hashed).
Size: Length of the input buffer in bytes. If the Size is not
multiple of 64 bytes, the padding is managed by hardware.
Return values
HAL: status
HAL_HMAC_MD5_Start_DMA
Function name
HAL_StatusTypeDef HAL_HMAC_MD5_Start_DMA
(HASH_HandleTypeDef * hhash, uint8_t * pInBuffer, uint32_t
Size)
Function description
Initializes the HASH peripheral in HMAC MD5 mode then enables
DMA to control data transfer.
Parameters
hhash: pointer to a HASH_HandleTypeDef structure that
contains the configuration information for HASH module
pInBuffer: Pointer to the input buffer (buffer to be hashed).
Size: Length of the input buffer in bytes. If the Size is not
multiple of 64 bytes, the padding is managed by hardware.
Return values
HAL: status
HAL_HASH_IRQHandler
Function name
void HAL_HASH_IRQHandler (HASH_HandleTypeDef * hhash)
Function description
This function handles HASH interrupt request.
Parameters
hhash: pointer to a HASH_HandleTypeDef structure that
contains the configuration information for HASH module
Return values
None:
HAL_HASH_GetState
Function name
HAL_HASH_StateTypeDef HAL_HASH_GetState
(HASH_HandleTypeDef * hhash)

Table of Contents

Related product manuals