STM32F439xx HAL User Manual
|
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 __HAL_HASH_GET_FLAG | ( | __FLAG__ | ) |
(((__FLAG__) > 8U) ? ((HASH->CR & (__FLAG__)) == (__FLAG__)) :\ ((HASH->SR & (__FLAG__)) == (__FLAG__)))
Check whether the specified HASH flag is set or not.
__FLAG__ | specifies the flag to check. This parameter can be one of the following values:
|
The | new 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.
__HANDLE__ | specifies the HASH handle. |
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.
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.
None |
Definition at line 250 of file stm32f4xx_hal_hash.h.
#define __HAL_HASH_SET_NBVALIDBITS | ( | SIZE | ) |
do{HASH->STR &= ~(HASH_STR_NBLW);\ HASH->STR |= 8U * ((SIZE) % 4U);\ }while(0)
Set the number of valid bits in last word written in Data register.
SIZE | size in byte of last data written in Data register. |
None |
Definition at line 269 of file stm32f4xx_hal_hash.h.
Referenced by HAL_HASH_MD5_Accumulate(), HAL_HASH_MD5_Start(), HAL_HASH_MD5_Start_DMA(), HAL_HASH_MD5_Start_IT(), HAL_HASH_SHA1_Accumulate(), HAL_HASH_SHA1_Start(), HAL_HASH_SHA1_Start_DMA(), HAL_HASH_SHA1_Start_IT(), HAL_HASHEx_SHA224_Accumulate(), HAL_HASHEx_SHA224_Start(), HAL_HASHEx_SHA224_Start_DMA(), HAL_HASHEx_SHA224_Start_IT(), HAL_HASHEx_SHA256_Accumulate(), HAL_HASHEx_SHA256_Start(), HAL_HASHEx_SHA256_Start_DMA(), HAL_HASHEx_SHA256_Start_IT(), HAL_HMAC_MD5_Start(), HAL_HMAC_MD5_Start_DMA(), HAL_HMAC_SHA1_Start(), HAL_HMAC_SHA1_Start_DMA(), HAL_HMACEx_SHA224_Start(), HAL_HMACEx_SHA224_Start_DMA(), HAL_HMACEx_SHA256_Start(), and HAL_HMACEx_SHA256_Start_DMA().
#define __HAL_HASH_START_DIGEST | ( | ) | HASH->STR |= HASH_STR_DCAL |
Start the digest computation.
None |
Definition at line 262 of file stm32f4xx_hal_hash.h.
Referenced by HAL_HASH_MD5_Start(), HAL_HASH_MD5_Start_IT(), HAL_HASH_SHA1_Start(), HAL_HASH_SHA1_Start_IT(), HAL_HASHEx_SHA224_Start(), HAL_HASHEx_SHA224_Start_IT(), HAL_HASHEx_SHA256_Start(), HAL_HASHEx_SHA256_Start_IT(), HAL_HMAC_MD5_Start(), HAL_HMAC_SHA1_Start(), HAL_HMACEx_SHA224_Start(), and HAL_HMACEx_SHA256_Start().