STM32F439xx HAL User Manual
Functions
HMAC processing functions using polling mode
HASHEx Exported Functions

HMAC processing functions using polling mode . More...

Functions

HAL_StatusTypeDef HAL_HMACEx_SHA224_Start (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t *pOutBuffer, uint32_t Timeout)
 Initializes the HASH peripheral in HMAC SHA224 mode then processes pInBuffer.
HAL_StatusTypeDef HAL_HMACEx_SHA256_Start (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t *pOutBuffer, uint32_t Timeout)
 Initializes the HASH peripheral in HMAC SHA256 mode then processes pInBuffer.

Detailed Description

HMAC processing functions using polling mode .

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


Function Documentation

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

Initializes the HASH peripheral in HMAC SHA224 mode then processes pInBuffer.

The digest is available in pOutBuffer.

Parameters:
hhashpointer to a HASH_HandleTypeDef structure that contains the configuration information for HASH module
pInBufferPointer to the input buffer (buffer to be hashed).
SizeLength of the input buffer in bytes. If the Size is not multiple of 64 bytes, the padding is managed by hardware.
pOutBufferPointer to the computed digest. Its size must be 20 bytes.
TimeoutTimeout value
Return values:
HALstatus

Definition at line 608 of file stm32f4xx_hal_hash_ex.c.

References __HAL_HASH_SET_NBVALIDBITS, __HAL_HASH_START_DIGEST, HAL_GetTick(), HAL_HASH_PHASE_PROCESS, HAL_HASH_PHASE_READY, HAL_HASH_STATE_BUSY, HAL_HASH_STATE_READY, HAL_HASH_STATE_TIMEOUT, HASH_ALGOMODE_HMAC, HASH_ALGOSELECTION_SHA224, HASH_FLAG_BUSY, HASH_HMAC_KEYTYPE_LONGKEY, HASHEx_GetDigest(), HASHEx_WriteData(), HASH_HandleTypeDef::Init, HASH_InitTypeDef::KeySize, HASH_HandleTypeDef::Phase, HASH_InitTypeDef::pKey, and HASH_HandleTypeDef::State.

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

Initializes the HASH peripheral in HMAC SHA256 mode then processes pInBuffer.

The digest is available in pOutBuffer

Parameters:
hhashpointer to a HASH_HandleTypeDef structure that contains the configuration information for HASH module
pInBufferPointer to the input buffer (buffer to be hashed).
SizeLength of the input buffer in bytes. If the Size is not multiple of 64 bytes, the padding is managed by hardware.
pOutBufferPointer to the computed digest. Its size must be 20 bytes.
TimeoutTimeout value
Return values:
HALstatus

Definition at line 752 of file stm32f4xx_hal_hash_ex.c.

References __HAL_HASH_SET_NBVALIDBITS, __HAL_HASH_START_DIGEST, HAL_GetTick(), HAL_HASH_PHASE_PROCESS, HAL_HASH_PHASE_READY, HAL_HASH_STATE_BUSY, HAL_HASH_STATE_READY, HAL_HASH_STATE_TIMEOUT, HASH_ALGOMODE_HMAC, HASH_ALGOSELECTION_SHA256, HASH_FLAG_BUSY, HASH_HMAC_KEYTYPE_LONGKEY, HASHEx_GetDigest(), HASHEx_WriteData(), HASH_HandleTypeDef::Init, HASH_InitTypeDef::KeySize, HASH_HandleTypeDef::Phase, HASH_InitTypeDef::pKey, and HASH_HandleTypeDef::State.