STM32F439xx HAL User Manual
Functions
HASH processing functions using interrupt mode
HASHEx Exported Functions

processing functions using interrupt mode. More...

Functions

HAL_StatusTypeDef HAL_HASHEx_SHA224_Start_IT (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t *pOutBuffer)
 Initializes the HASH peripheral in SHA224 mode then processes pInBuffer.
HAL_StatusTypeDef HAL_HASHEx_SHA256_Start_IT (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t *pOutBuffer)
 Initializes the HASH peripheral in SHA256 mode then processes pInBuffer.
void HAL_HASHEx_IRQHandler (HASH_HandleTypeDef *hhash)
 This function handles HASH interrupt request.

Detailed Description

processing functions using interrupt mode.

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


Function Documentation

This function handles HASH interrupt request.

Parameters:
hhashpointer to a HASH_HandleTypeDef structure that contains the configuration information for HASH module
Return values:
None

Definition at line 1214 of file stm32f4xx_hal_hash_ex.c.

References HAL_HASHEx_SHA224_Start_IT(), HAL_HASHEx_SHA256_Start_IT(), HASH_ALGOSELECTION_SHA224, and HASH_ALGOSELECTION_SHA256.

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

Initializes the HASH peripheral in 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.
Return values:
HALstatus

Definition at line 918 of file stm32f4xx_hal_hash_ex.c.

References __HAL_HASH_GET_FLAG, __HAL_HASH_SET_NBVALIDBITS, __HAL_HASH_START_DIGEST, HAL_HASH_DgstCpltCallback(), HAL_HASH_InCpltCallback(), HAL_HASH_PHASE_PROCESS, HAL_HASH_PHASE_READY, HAL_HASH_STATE_BUSY, HAL_HASH_STATE_READY, HASH_ALGOSELECTION_SHA224, HASH_FLAG_DCIS, HASH_FLAG_DINIS, HASH_IT_DCI, HASH_IT_DINI, HASHEx_GetDigest(), HASH_HandleTypeDef::HashInCount, HASH_HandleTypeDef::HashITCounter, HASH_HandleTypeDef::Phase, HASH_HandleTypeDef::pHashInBuffPtr, HASH_HandleTypeDef::pHashOutBuffPtr, and HASH_HandleTypeDef::State.

Referenced by HAL_HASHEx_IRQHandler().

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

Initializes the HASH peripheral in 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.
Return values:
HALstatus

Definition at line 1069 of file stm32f4xx_hal_hash_ex.c.

References __HAL_HASH_GET_FLAG, __HAL_HASH_SET_NBVALIDBITS, __HAL_HASH_START_DIGEST, HAL_HASH_DgstCpltCallback(), HAL_HASH_InCpltCallback(), HAL_HASH_PHASE_PROCESS, HAL_HASH_PHASE_READY, HAL_HASH_STATE_BUSY, HAL_HASH_STATE_READY, HASH_ALGOSELECTION_SHA256, HASH_FLAG_DCIS, HASH_FLAG_DINIS, HASH_IT_DCI, HASH_IT_DINI, HASHEx_GetDigest(), HASH_HandleTypeDef::HashInCount, HASH_HandleTypeDef::HashITCounter, HASH_HandleTypeDef::Phase, HASH_HandleTypeDef::pHashInBuffPtr, HASH_HandleTypeDef::pHashOutBuffPtr, and HASH_HandleTypeDef::State.

Referenced by HAL_HASHEx_IRQHandler().