STM32F439xx HAL User Manual
Defines
HASH Exported Macros
HASH

Defines

#define __HAL_HASH_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->State = HAL_HASH_STATE_RESET)
 Reset HASH handle state.
#define __HAL_HASH_GET_FLAG(__FLAG__)
 Check whether the specified HASH flag is set or not.
#define __HAL_HASH_SET_MDMAT()   HASH->CR |= HASH_CR_MDMAT
 Enable the multiple DMA mode.
#define __HAL_HASH_RESET_MDMAT()   HASH->CR &= (uint32_t)(~HASH_CR_MDMAT)
 Disable the multiple DMA mode.
#define __HAL_HASH_START_DIGEST()   HASH->STR |= HASH_STR_DCAL
 Start the digest computation.
#define __HAL_HASH_SET_NBVALIDBITS(SIZE)
 Set the number of valid bits in last word written in Data register.

Define Documentation

#define __HAL_HASH_GET_FLAG (   __FLAG__)
Value:
(((__FLAG__) > 8U) ? ((HASH->CR & (__FLAG__)) == (__FLAG__)) :\
                                                           ((HASH->SR & (__FLAG__)) == (__FLAG__)))

Check whether the specified HASH flag is set or not.

Parameters:
__FLAG__specifies the flag to check. This parameter can be one of the following values:
  • HASH_FLAG_DINIS: A new block can be entered into the input buffer.
  • HASH_FLAG_DCIS: Digest calculation complete
  • HASH_FLAG_DMAS: DMA interface is enabled (DMAE=1) or a transfer is ongoing
  • HASH_FLAG_BUSY: The hash core is Busy : processing a block of data
  • HASH_FLAG_DINNE: DIN not empty : The input buffer contains at least one word of data
Return values:
Thenew state of __FLAG__ (TRUE or FALSE).

Definition at line 242 of file stm32f4xx_hal_hash.h.

Referenced by HAL_HASH_MD5_Start_IT(), HAL_HASH_SHA1_Start_IT(), HAL_HASHEx_SHA224_Start_IT(), and HAL_HASHEx_SHA256_Start_IT().

#define __HAL_HASH_RESET_HANDLE_STATE (   __HANDLE__)    ((__HANDLE__)->State = HAL_HASH_STATE_RESET)

Reset HASH handle state.

Parameters:
__HANDLE__specifies the HASH handle.
Return values:
None

Definition at line 230 of file stm32f4xx_hal_hash.h.

#define __HAL_HASH_RESET_MDMAT ( )    HASH->CR &= (uint32_t)(~HASH_CR_MDMAT)

Disable the multiple DMA mode.

Return values:
None

Definition at line 256 of file stm32f4xx_hal_hash.h.

#define __HAL_HASH_SET_MDMAT ( )    HASH->CR |= HASH_CR_MDMAT

Enable the multiple DMA mode.

This feature is available only in STM32F429x and STM32F439x devices.

Return values:
None

Definition at line 250 of file stm32f4xx_hal_hash.h.

#define __HAL_HASH_SET_NBVALIDBITS (   SIZE)
#define __HAL_HASH_START_DIGEST ( )    HASH->STR |= HASH_STR_DCAL