|
STM32L4xx_HAL_Driver
1.14.0
|
Functions | |
| HAL_StatusTypeDef | HASH_Start (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t *pOutBuffer, uint32_t Timeout, uint32_t Algorithm) |
| Initialize the HASH peripheral, next process pInBuffer then read the computed digest. More... | |
| HAL_StatusTypeDef | HASH_Accumulate (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint32_t Algorithm) |
| If not already done, initialize the HASH peripheral then processes pInBuffer. More... | |
| HAL_StatusTypeDef | HASH_Accumulate_IT (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint32_t Algorithm) |
| If not already done, initialize the HASH peripheral then processes pInBuffer in interruption mode. More... | |
| HAL_StatusTypeDef | HASH_Start_IT (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t *pOutBuffer, uint32_t Algorithm) |
| Initialize the HASH peripheral, next process pInBuffer then read the computed digest in interruption mode. More... | |
| HAL_StatusTypeDef | HASH_Start_DMA (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint32_t Algorithm) |
| Initialize the HASH peripheral then initiate a DMA transfer to feed the input buffer to the Peripheral. More... | |
| HAL_StatusTypeDef | HASH_Finish (HASH_HandleTypeDef *hhash, uint8_t *pOutBuffer, uint32_t Timeout) |
| Return the computed digest. More... | |
| HAL_StatusTypeDef | HMAC_Start (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t *pOutBuffer, uint32_t Timeout, uint32_t Algorithm) |
| Initialize the HASH peripheral in HMAC mode, next process pInBuffer then read the computed digest. More... | |
| HAL_StatusTypeDef | HMAC_Start_IT (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t *pOutBuffer, uint32_t Algorithm) |
| Initialize the HASH peripheral in HMAC mode, next process pInBuffer then read the computed digest in interruption mode. More... | |
| HAL_StatusTypeDef | HMAC_Start_DMA (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint32_t Algorithm) |
| Initialize the HASH peripheral in HMAC mode then initiate the required DMA transfers to feed the key and the input buffer to the Peripheral. More... | |
| static void | HASH_DMAXferCplt (DMA_HandleTypeDef *hdma) |
| DMA HASH Input Data transfer completion callback. More... | |
| static void | HASH_DMAError (DMA_HandleTypeDef *hdma) |
| DMA HASH communication error callback. More... | |
| static void | HASH_GetDigest (uint8_t *pMsgDigest, uint8_t Size) |
| Retrieve the message digest. More... | |
| static HAL_StatusTypeDef | HASH_WaitOnFlagUntilTimeout (HASH_HandleTypeDef *hhash, uint32_t Flag, FlagStatus Status, uint32_t Timeout) |
| Handle HASH processing Timeout. More... | |
| static HAL_StatusTypeDef | HASH_WriteData (HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size) |
| Feed the input buffer to the HASH Peripheral. More... | |
| static HAL_StatusTypeDef | HASH_IT (HASH_HandleTypeDef *hhash) |
| HASH processing in interruption mode. More... | |
| static uint32_t | HASH_Write_Block_Data (HASH_HandleTypeDef *hhash) |
| Write a block of data in HASH Peripheral in interruption mode. More... | |
| static HAL_StatusTypeDef | HMAC_Processing (HASH_HandleTypeDef *hhash, uint32_t Timeout) |
| HMAC processing in polling mode. More... | |
| HAL_StatusTypeDef HASH_Accumulate | ( | HASH_HandleTypeDef * | hhash, |
| uint8_t * | pInBuffer, | ||
| uint32_t | Size, | ||
| uint32_t | Algorithm | ||
| ) |
If not already done, initialize the HASH peripheral 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. |
| Algorithm | HASH algorithm. |
| HAL | status |
Definition at line 2474 of file stm32l4xx_hal_hash.c.
| HAL_StatusTypeDef HASH_Accumulate_IT | ( | HASH_HandleTypeDef * | hhash, |
| uint8_t * | pInBuffer, | ||
| uint32_t | Size, | ||
| uint32_t | Algorithm | ||
| ) |
If not already done, initialize the HASH peripheral then processes pInBuffer in interruption mode.
| 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. |
| Algorithm | HASH algorithm. |
| HAL | status |
Definition at line 2577 of file stm32l4xx_hal_hash.c.
|
static |
DMA HASH communication error callback.
| hdma | DMA handle. |
| None |
Definition at line 1701 of file stm32l4xx_hal_hash.c.
|
static |
DMA HASH Input Data transfer completion callback.
| hdma | DMA handle. |
| None |
Definition at line 1561 of file stm32l4xx_hal_hash.c.
| HAL_StatusTypeDef HASH_Finish | ( | HASH_HandleTypeDef * | hhash, |
| uint8_t * | pOutBuffer, | ||
| uint32_t | Timeout | ||
| ) |
Return the computed digest.
| hhash | HASH handle. |
| pOutBuffer | pointer to the computed digest. |
| Timeout | Timeout value. |
| HAL | status |
Definition at line 2969 of file stm32l4xx_hal_hash.c.
|
static |
Retrieve the message digest.
| pMsgDigest | pointer to the computed digest. |
| Size | message digest size in bytes. |
| None |
Definition at line 1799 of file stm32l4xx_hal_hash.c.
|
static |
HASH processing in interruption mode.
| hhash | HASH handle. |
| HAL | status |
Definition at line 1935 of file stm32l4xx_hal_hash.c.
| HAL_StatusTypeDef HASH_Start | ( | HASH_HandleTypeDef * | hhash, |
| uint8_t * | pInBuffer, | ||
| uint32_t | Size, | ||
| uint8_t * | pOutBuffer, | ||
| uint32_t | Timeout, | ||
| uint32_t | Algorithm | ||
| ) |
Initialize the HASH peripheral, 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. |
| Timeout | Timeout value. |
| Algorithm | HASH algorithm. |
| HAL | status |
Definition at line 2341 of file stm32l4xx_hal_hash.c.
| HAL_StatusTypeDef HASH_Start_DMA | ( | HASH_HandleTypeDef * | hhash, |
| uint8_t * | pInBuffer, | ||
| uint32_t | Size, | ||
| uint32_t | Algorithm | ||
| ) |
Initialize the HASH peripheral then initiate a DMA transfer to feed the input buffer to the Peripheral.
| hhash | HASH handle. |
| pInBuffer | pointer to the input buffer (buffer to be hashed). |
| Size | length of the input buffer in bytes. |
| Algorithm | HASH algorithm. |
| HAL | status |
Definition at line 2855 of file stm32l4xx_hal_hash.c.
| HAL_StatusTypeDef HASH_Start_IT | ( | HASH_HandleTypeDef * | hhash, |
| uint8_t * | pInBuffer, | ||
| uint32_t | Size, | ||
| uint8_t * | pOutBuffer, | ||
| uint32_t | Algorithm | ||
| ) |
Initialize the HASH peripheral, next process pInBuffer then read the computed digest in interruption mode.
| 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. |
| Algorithm | HASH algorithm. |
| HAL | status |
Definition at line 2699 of file stm32l4xx_hal_hash.c.
|
static |
Handle HASH processing Timeout.
| hhash | HASH handle. |
| Flag | specifies the HASH flag to check. |
| Status | the Flag status (SET or RESET). |
| Timeout | Timeout duration. |
| HAL | status |
Definition at line 1873 of file stm32l4xx_hal_hash.c.
|
static |
Write a block of data in HASH Peripheral in interruption mode.
| hhash | HASH handle. |
| HAL | status |
Definition at line 2072 of file stm32l4xx_hal_hash.c.
|
static |
Feed the input buffer to the HASH Peripheral.
| hhash | HASH handle. |
| pInBuffer | pointer to input buffer. |
| Size | the size of input buffer in bytes. |
| HAL | status |
Definition at line 1735 of file stm32l4xx_hal_hash.c.
|
static |
HMAC processing in polling mode.
| hhash | HASH handle. |
| Timeout | Timeout value. |
| HAL | status |
Definition at line 2177 of file stm32l4xx_hal_hash.c.
| HAL_StatusTypeDef HMAC_Start | ( | HASH_HandleTypeDef * | hhash, |
| uint8_t * | pInBuffer, | ||
| uint32_t | Size, | ||
| uint8_t * | pOutBuffer, | ||
| uint32_t | Timeout, | ||
| uint32_t | Algorithm | ||
| ) |
Initialize the HASH peripheral in HMAC 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. |
| Timeout | Timeout value. |
| Algorithm | HASH algorithm. |
| HAL | status |
Definition at line 3027 of file stm32l4xx_hal_hash.c.
| HAL_StatusTypeDef HMAC_Start_DMA | ( | HASH_HandleTypeDef * | hhash, |
| uint8_t * | pInBuffer, | ||
| uint32_t | Size, | ||
| uint32_t | Algorithm | ||
| ) |
Initialize the HASH peripheral in HMAC mode then initiate the required DMA transfers to feed the key and the input buffer to the Peripheral.
| hhash | HASH handle. |
| pInBuffer | pointer to the input buffer (buffer to be hashed). |
| Size | length of the input buffer in bytes. |
| Algorithm | HASH algorithm. |
| HAL | status |
Definition at line 3204 of file stm32l4xx_hal_hash.c.
| HAL_StatusTypeDef HMAC_Start_IT | ( | HASH_HandleTypeDef * | hhash, |
| uint8_t * | pInBuffer, | ||
| uint32_t | Size, | ||
| uint8_t * | pOutBuffer, | ||
| uint32_t | Algorithm | ||
| ) |
Initialize the HASH peripheral in HMAC mode, next process pInBuffer then read the computed digest in interruption mode.
| 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. |
| Algorithm | HASH algorithm. |
| HAL | status |
Definition at line 3097 of file stm32l4xx_hal_hash.c.