STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
HMAC extended processing functions in polling mode

HMAC extended processing functions using polling mode. More...

Collaboration diagram for HMAC extended processing functions in polling mode:

Functions

HAL_StatusTypeDef HAL_HMACEx_SHA224_Start (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t *pOutBuffer, uint32_t Timeout)
 Initialize the HASH peripheral in HMAC SHA224 mode, next process pInBuffer then read the computed digest.
 
HAL_StatusTypeDef HAL_HMACEx_SHA256_Start (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t *pOutBuffer, uint32_t Timeout)
 Initialize the HASH peripheral in HMAC SHA256 mode, next process pInBuffer then read the computed digest.
 

Detailed Description

HMAC extended processing functions using polling mode.

 ===============================================================================
             ##### Polling mode HMAC extended processing functions #####
 ===============================================================================
    [..]  This section provides functions allowing to calculate in polling mode
          the HMAC value using one of the following algorithms:
      (+) SHA224
         (++) HAL_HMACEx_SHA224_Start()
      (+) SHA256
         (++) HAL_HMACEx_SHA256_Start()

Function Documentation

◆ HAL_HMACEx_SHA224_Start()

HAL_StatusTypeDef HAL_HMACEx_SHA224_Start ( HASH_HandleTypeDef * hhash,
uint8_t * pInBuffer,
uint32_t Size,
uint8_t * pOutBuffer,
uint32_t Timeout )

#include <stm32f4xx_hal_hash_ex.h>

Initialize the HASH peripheral in HMAC SHA224 mode, next process pInBuffer then read the computed digest.

Note
Digest is available in pOutBuffer.
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.
Parameters
hhashHASH handle.
pInBufferpointer to the input buffer (buffer to be hashed).
Sizelength of the input buffer in bytes.
pOutBufferpointer to the computed digest. Digest size is 28 bytes.
TimeoutTimeout value.
Return values
HALstatus

Definition at line 524 of file stm32f4xx_hal_hash_ex.c.

References HASH_ALGOSELECTION_SHA224, and HMAC_Start().

◆ HAL_HMACEx_SHA256_Start()

HAL_StatusTypeDef HAL_HMACEx_SHA256_Start ( HASH_HandleTypeDef * hhash,
uint8_t * pInBuffer,
uint32_t Size,
uint8_t * pOutBuffer,
uint32_t Timeout )

#include <stm32f4xx_hal_hash_ex.h>

Initialize the HASH peripheral in HMAC SHA256 mode, next process pInBuffer then read the computed digest.

Note
Digest is available in pOutBuffer.
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.
Parameters
hhashHASH handle.
pInBufferpointer to the input buffer (buffer to be hashed).
Sizelength of the input buffer in bytes.
pOutBufferpointer to the computed digest. Digest size is 32 bytes.
TimeoutTimeout value.
Return values
HALstatus

Definition at line 543 of file stm32f4xx_hal_hash_ex.c.

References HASH_ALGOSELECTION_SHA256, and HMAC_Start().