|
STM32F479xx HAL User Manual
|
Defines | |
| #define | HASH_DIGEST_LENGTH() |
| Return digest length in bytes. | |
| #define | HASH_NBW_PUSHED() ((READ_BIT(HASH->CR, HASH_CR_NBW)) >> 8U) |
| Return number of words already pushed in the FIFO. | |
| #define | IS_HASH_DATATYPE(__DATATYPE__) |
| Ensure that HASH input data type is valid. | |
| #define | IS_HASH_DMA_MULTIBUFFER_SIZE(__SIZE__) ((READ_BIT(HASH->CR, HASH_CR_MDMAT) == 0U) || (((__SIZE__) % 4U) == 0U)) |
| Ensure that input data buffer size is valid for multi-buffer HASH processing in DMA mode. | |
| #define | IS_HMAC_DMA_MULTIBUFFER_SIZE(__HANDLE__, __SIZE__) |
| Ensure that input data buffer size is valid for multi-buffer HMAC processing in DMA mode. | |
| #define | IS_HASH_PROCESSING(__HANDLE__) ((__HANDLE__)->Phase == HAL_HASH_PHASE_PROCESS) |
| Ensure that handle phase is set to HASH processing. | |
| #define | IS_HMAC_PROCESSING(__HANDLE__) |
| Ensure that handle phase is set to HMAC processing. | |
| #define HASH_DIGEST_LENGTH | ( | ) |
((READ_BIT(HASH->CR, HASH_CR_ALGO) == HASH_ALGOSELECTION_SHA1) ? 20U : \ ((READ_BIT(HASH->CR, HASH_CR_ALGO) == HASH_ALGOSELECTION_SHA224) ? 28U : \ ((READ_BIT(HASH->CR, HASH_CR_ALGO) == HASH_ALGOSELECTION_SHA256) ? 32U : 16U ) ) )
Return digest length in bytes.
| Digest | length |
Definition at line 385 of file stm32f4xx_hal_hash.h.
Referenced by HASH_Finish(), HASH_IT(), HASH_Start(), and HMAC_Processing().
| #define HASH_NBW_PUSHED | ( | ) | ((READ_BIT(HASH->CR, HASH_CR_NBW)) >> 8U) |
Return number of words already pushed in the FIFO.
| Number | of words already pushed in the FIFO |
Definition at line 395 of file stm32f4xx_hal_hash.h.
Referenced by HAL_HASH_DMAFeed_ProcessSuspend(), HASH_Start_DMA(), and HMAC_Start_DMA().
| #define IS_HASH_DATATYPE | ( | __DATATYPE__ | ) |
(((__DATATYPE__) == HASH_DATATYPE_32B)|| \ ((__DATATYPE__) == HASH_DATATYPE_16B)|| \ ((__DATATYPE__) == HASH_DATATYPE_8B) || \ ((__DATATYPE__) == HASH_DATATYPE_1B))
Ensure that HASH input data type is valid.
| __DATATYPE__ | HASH input data type. |
| SET | (__DATATYPE__ is valid) or RESET (__DATATYPE__ is invalid) |
Definition at line 402 of file stm32f4xx_hal_hash.h.
Referenced by HAL_HASH_Init().
| #define IS_HASH_DMA_MULTIBUFFER_SIZE | ( | __SIZE__ | ) | ((READ_BIT(HASH->CR, HASH_CR_MDMAT) == 0U) || (((__SIZE__) % 4U) == 0U)) |
Ensure that input data buffer size is valid for multi-buffer HASH processing in DMA mode.
| __SIZE__ | input data buffer size. |
| SET | (__SIZE__ is valid) or RESET (__SIZE__ is invalid) |
Definition at line 414 of file stm32f4xx_hal_hash.h.
Referenced by HASH_Start_DMA().
| #define IS_HASH_PROCESSING | ( | __HANDLE__ | ) | ((__HANDLE__)->Phase == HAL_HASH_PHASE_PROCESS) |
Ensure that handle phase is set to HASH processing.
| __HANDLE__ | HASH handle. |
| SET | (handle phase is set to HASH processing) or RESET (handle phase is not set to HASH processing) |
Definition at line 431 of file stm32f4xx_hal_hash.h.
Referenced by HASH_Start_DMA().
| #define IS_HMAC_DMA_MULTIBUFFER_SIZE | ( | __HANDLE__, | |
| __SIZE__ | |||
| ) |
((((__HANDLE__)->DigestCalculationDisable) == RESET)\
|| (((__SIZE__) % 4U) == 0U))
Ensure that input data buffer size is valid for multi-buffer HMAC processing in DMA mode.
| __HANDLE__ | HASH handle. |
| __SIZE__ | input data buffer size. |
| SET | (__SIZE__ is valid) or RESET (__SIZE__ is invalid) |
Definition at line 424 of file stm32f4xx_hal_hash.h.
Referenced by HMAC_Start_DMA().
| #define IS_HMAC_PROCESSING | ( | __HANDLE__ | ) |
(((__HANDLE__)->Phase == HAL_HASH_PHASE_HMAC_STEP_1) || \ ((__HANDLE__)->Phase == HAL_HASH_PHASE_HMAC_STEP_2) || \ ((__HANDLE__)->Phase == HAL_HASH_PHASE_HMAC_STEP_3))
Ensure that handle phase is set to HMAC processing.
| __HANDLE__ | HASH handle. |
| SET | (handle phase is set to HMAC processing) or RESET (handle phase is not set to HMAC processing) |
Definition at line 438 of file stm32f4xx_hal_hash.h.
Referenced by HMAC_Start_DMA().
1.7.6.1