|
STM32H735xx HAL User Manual
|
HASH processing functions using polling mode. More...
Functions | |
| HAL_StatusTypeDef | HAL_HASH_MD5_Start (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t *pOutBuffer, uint32_t Timeout) |
| Initialize the HASH peripheral in MD5 mode, next process pInBuffer then read the computed digest. | |
| HAL_StatusTypeDef | HAL_HASH_MD5_Accmlt (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size) |
| If not already done, initialize the HASH peripheral in MD5 mode then processes pInBuffer. | |
| HAL_StatusTypeDef | HAL_HASH_MD5_Accmlt_End (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t *pOutBuffer, uint32_t Timeout) |
| End computation of a single HASH signature after several calls to HAL_HASH_MD5_Accmlt() API. | |
| HAL_StatusTypeDef | HAL_HASH_SHA1_Start (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t *pOutBuffer, uint32_t Timeout) |
| Initialize the HASH peripheral in SHA1 mode, next process pInBuffer then read the computed digest. | |
| HAL_StatusTypeDef | HAL_HASH_SHA1_Accmlt (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size) |
| If not already done, initialize the HASH peripheral in SHA1 mode then processes pInBuffer. | |
| HAL_StatusTypeDef | HAL_HASH_SHA1_Accmlt_End (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t *pOutBuffer, uint32_t Timeout) |
| End computation of a single HASH signature after several calls to HAL_HASH_SHA1_Accmlt() API. | |
HASH processing functions using polling mode.
===============================================================================
##### Polling mode HASH processing functions #####
===============================================================================
[..] This section provides functions allowing to calculate in polling mode
the hash value using one of the following algorithms:
(+) MD5
(++) HAL_HASH_MD5_Start()
(++) HAL_HASH_MD5_Accmlt()
(++) HAL_HASH_MD5_Accmlt_End()
(+) SHA1
(++) HAL_HASH_SHA1_Start()
(++) HAL_HASH_SHA1_Accmlt()
(++) HAL_HASH_SHA1_Accmlt_End()
[..] For a single buffer to be hashed, user can resort to HAL_HASH_xxx_Start().
[..] In case of multi-buffer HASH processing (a single digest is computed while
several buffers are fed to the Peripheral), the user can resort to successive calls
to HAL_HASH_xxx_Accumulate() and wrap-up the digest computation by a call
to HAL_HASH_xxx_Accumulate_End().
| HAL_StatusTypeDef HAL_HASH_MD5_Accmlt | ( | HASH_HandleTypeDef * | hhash, |
| uint8_t * | pInBuffer, | ||
| uint32_t | Size | ||
| ) |
If not already done, initialize the HASH peripheral in MD5 mode then processes pInBuffer.
| hhash | HASH handle. |
| pInBuffer | pointer to the input buffer (buffer to be hashed). |
| Size | length of the input buffer in bytes, must be a multiple of 4. |
| HAL | status |
Definition at line 793 of file stm32h7xx_hal_hash.c.
References HASH_Accumulate(), and HASH_ALGOSELECTION_MD5.
| HAL_StatusTypeDef HAL_HASH_MD5_Accmlt_End | ( | HASH_HandleTypeDef * | hhash, |
| uint8_t * | pInBuffer, | ||
| uint32_t | Size, | ||
| uint8_t * | pOutBuffer, | ||
| uint32_t | Timeout | ||
| ) |
End computation of a single HASH signature after several calls to HAL_HASH_MD5_Accmlt() API.
| hhash | HASH handle. |
| pInBuffer | pointer to the input buffer (buffer to be hashed). |
| Size | length of the input buffer in bytes. |
| pOutBuffer | pointer to the computed digest. Digest size is 16 bytes. |
| Timeout | Timeout value |
| HAL | status |
Definition at line 808 of file stm32h7xx_hal_hash.c.
References HASH_ALGOSELECTION_MD5, and HASH_Start().
| HAL_StatusTypeDef HAL_HASH_MD5_Start | ( | HASH_HandleTypeDef * | hhash, |
| uint8_t * | pInBuffer, | ||
| uint32_t | Size, | ||
| uint8_t * | pOutBuffer, | ||
| uint32_t | Timeout | ||
| ) |
Initialize the HASH peripheral in MD5 mode, next process pInBuffer then read the computed digest.
| hhash | HASH handle. |
| pInBuffer | pointer to the input buffer (buffer to be hashed). |
| Size | length of the input buffer in bytes. |
| pOutBuffer | pointer to the computed digest. Digest size is 16 bytes. |
| Timeout | Timeout value |
| HAL | status |
Definition at line 767 of file stm32h7xx_hal_hash.c.
References HASH_ALGOSELECTION_MD5, and HASH_Start().
| HAL_StatusTypeDef HAL_HASH_SHA1_Accmlt | ( | HASH_HandleTypeDef * | hhash, |
| uint8_t * | pInBuffer, | ||
| uint32_t | Size | ||
| ) |
If not already done, initialize the HASH peripheral in SHA1 mode then processes pInBuffer.
| hhash | HASH handle. |
| pInBuffer | pointer to the input buffer (buffer to be hashed). |
| Size | length of the input buffer in bytes, must be a multiple of 4. |
| HAL | status |
Definition at line 851 of file stm32h7xx_hal_hash.c.
References HASH_Accumulate(), and HASH_ALGOSELECTION_SHA1.
| HAL_StatusTypeDef HAL_HASH_SHA1_Accmlt_End | ( | HASH_HandleTypeDef * | hhash, |
| uint8_t * | pInBuffer, | ||
| uint32_t | Size, | ||
| uint8_t * | pOutBuffer, | ||
| uint32_t | Timeout | ||
| ) |
End computation of a single HASH signature after several calls to HAL_HASH_SHA1_Accmlt() API.
| hhash | HASH handle. |
| pInBuffer | pointer to the input buffer (buffer to be hashed). |
| Size | length of the input buffer in bytes. |
| pOutBuffer | pointer to the computed digest. Digest size is 20 bytes. |
| Timeout | Timeout value |
| HAL | status |
Definition at line 866 of file stm32h7xx_hal_hash.c.
References HASH_ALGOSELECTION_SHA1, and HASH_Start().
| HAL_StatusTypeDef HAL_HASH_SHA1_Start | ( | HASH_HandleTypeDef * | hhash, |
| uint8_t * | pInBuffer, | ||
| uint32_t | Size, | ||
| uint8_t * | pOutBuffer, | ||
| uint32_t | Timeout | ||
| ) |
Initialize the HASH peripheral in SHA1 mode, next process pInBuffer then read the computed digest.
| hhash | HASH handle. |
| pInBuffer | pointer to the input buffer (buffer to be hashed). |
| Size | length of the input buffer in bytes. |
| pOutBuffer | pointer to the computed digest. Digest size is 20 bytes. |
| Timeout | Timeout value |
| HAL | status |
Definition at line 825 of file stm32h7xx_hal_hash.c.
References HASH_ALGOSELECTION_SHA1, and HASH_Start().
1.7.6.1