|
STM32L443xx HAL User Manual
|
Extended processing functions. More...
Functions | |
| void | HAL_CRYPEx_Read_IVRegisters (CRYP_HandleTypeDef *hcryp, uint8_t *Output) |
| In case of message processing suspension, read the Initialization Vector. | |
| void | HAL_CRYPEx_Write_IVRegisters (CRYP_HandleTypeDef *hcryp, uint8_t *Input) |
| In case of message processing resumption, rewrite the Initialization Vector in the AES_IVRx registers. | |
| void | HAL_CRYPEx_Read_SuspendRegisters (CRYP_HandleTypeDef *hcryp, uint8_t *Output) |
| In case of message GCM/GMAC (CCM/CMAC when applicable) processing suspension, read the Suspend Registers. | |
| void | HAL_CRYPEx_Write_SuspendRegisters (CRYP_HandleTypeDef *hcryp, uint8_t *Input) |
| In case of message GCM/GMAC (CCM/CMAC when applicable) processing resumption, rewrite the Suspend Registers in the AES_SUSPxR registers. | |
| void | HAL_CRYPEx_Read_KeyRegisters (CRYP_HandleTypeDef *hcryp, uint8_t *Output, uint32_t KeySize) |
| In case of message GCM/GMAC (CCM/CMAC when applicable) processing suspension, read the Key Registers. | |
| void | HAL_CRYPEx_Write_KeyRegisters (CRYP_HandleTypeDef *hcryp, uint8_t *Input, uint32_t KeySize) |
| In case of message GCM/GMAC (CCM/CMAC when applicable) processing resumption, rewrite the Key Registers in the AES_KEYRx registers. | |
| void | HAL_CRYPEx_Read_ControlRegister (CRYP_HandleTypeDef *hcryp, uint8_t *Output) |
| In case of message GCM/GMAC (CCM/CMAC when applicable) processing suspension, read the Control Register. | |
| void | HAL_CRYPEx_Write_ControlRegister (CRYP_HandleTypeDef *hcryp, uint8_t *Input) |
| In case of message GCM/GMAC (CCM/CMAC when applicable) processing resumption, rewrite the Control Registers in the AES_CR register. | |
| void | HAL_CRYPEx_ProcessSuspend (CRYP_HandleTypeDef *hcryp) |
| Request CRYP processing suspension when in polling or interruption mode. | |
Extended processing functions.
==============================================================================
##### AES extended suspension and resumption functions #####
==============================================================================
[..] This section provides functions allowing to:
(+) save in memory the Initialization Vector, the Key registers, the Control register or
the Suspend registers when a process is suspended by a higher priority message
(+) write back in CRYP hardware block the saved values listed above when the suspended
lower priority message processing is resumed.
| void HAL_CRYPEx_ProcessSuspend | ( | CRYP_HandleTypeDef * | hcryp | ) |
Request CRYP processing suspension when in polling or interruption mode.
| hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module. |
| None |
Definition at line 2096 of file stm32l4xx_hal_cryp_ex.c.
References HAL_CRYP_SUSPEND, and __CRYP_HandleTypeDef::SuspendRequest.
| void HAL_CRYPEx_Read_ControlRegister | ( | CRYP_HandleTypeDef * | hcryp, |
| uint8_t * | Output | ||
| ) |
In case of message GCM/GMAC (CCM/CMAC when applicable) processing suspension, read the Control Register.
| hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module. |
| Output | Pointer to the buffer containing the saved Control Register. |
| None |
Definition at line 2063 of file stm32l4xx_hal_cryp_ex.c.
References __CRYP_HandleTypeDef::Instance.
| void HAL_CRYPEx_Read_IVRegisters | ( | CRYP_HandleTypeDef * | hcryp, |
| uint8_t * | Output | ||
| ) |
In case of message processing suspension, read the Initialization Vector.
| hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module. |
| Output | Pointer to the buffer containing the saved Initialization Vector. |
| None |
Definition at line 1862 of file stm32l4xx_hal_cryp_ex.c.
References __CRYP_HandleTypeDef::Instance.
| void HAL_CRYPEx_Read_KeyRegisters | ( | CRYP_HandleTypeDef * | hcryp, |
| uint8_t * | Output, | ||
| uint32_t | KeySize | ||
| ) |
In case of message GCM/GMAC (CCM/CMAC when applicable) processing suspension, read the Key Registers.
| hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module. |
| Output | Pointer to the buffer containing the saved Key Registers. |
| KeySize | Indicates the key size (128 or 256 bits). |
| None |
Definition at line 1993 of file stm32l4xx_hal_cryp_ex.c.
References CRYP_KEYSIZE_256B, and __CRYP_HandleTypeDef::Instance.
| void HAL_CRYPEx_Read_SuspendRegisters | ( | CRYP_HandleTypeDef * | hcryp, |
| uint8_t * | Output | ||
| ) |
In case of message GCM/GMAC (CCM/CMAC when applicable) processing suspension, read the Suspend Registers.
| hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module. |
| Output | Pointer to the buffer containing the saved Suspend Registers. |
| None |
Definition at line 1910 of file stm32l4xx_hal_cryp_ex.c.
References CRYP_ALGOMODE_ENCRYPT, CRYP_BUSY_TIMEOUTVALUE, CRYP_CHAINMODE_AES_GCM_GMAC, CRYP_PAYLOAD_PHASE, CRYP_WaitOnBusyFlagReset(), __CRYP_HandleTypeDef::ErrorCallback, __CRYP_HandleTypeDef::ErrorCode, HAL_CRYP_BUSY_ERROR, HAL_CRYP_ErrorCallback(), HAL_CRYP_STATE_ERROR, __CRYP_HandleTypeDef::Instance, and __CRYP_HandleTypeDef::State.
| void HAL_CRYPEx_Write_ControlRegister | ( | CRYP_HandleTypeDef * | hcryp, |
| uint8_t * | Input | ||
| ) |
In case of message GCM/GMAC (CCM/CMAC when applicable) processing resumption, rewrite the Control Registers in the AES_CR register.
| hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module. |
| Input | Pointer to the buffer containing the saved Control Register to write back in the CRYP hardware block. |
| None |
Definition at line 2077 of file stm32l4xx_hal_cryp_ex.c.
References HAL_CRYP_STATE_READY, __CRYP_HandleTypeDef::Instance, and __CRYP_HandleTypeDef::State.
| void HAL_CRYPEx_Write_IVRegisters | ( | CRYP_HandleTypeDef * | hcryp, |
| uint8_t * | Input | ||
| ) |
In case of message processing resumption, rewrite the Initialization Vector in the AES_IVRx registers.
| hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module. |
| Input | Pointer to the buffer containing the saved Initialization Vector to write back in the CRYP hardware block. |
| None |
Definition at line 1886 of file stm32l4xx_hal_cryp_ex.c.
References __CRYP_HandleTypeDef::Instance.
| void HAL_CRYPEx_Write_KeyRegisters | ( | CRYP_HandleTypeDef * | hcryp, |
| uint8_t * | Input, | ||
| uint32_t | KeySize | ||
| ) |
In case of message GCM/GMAC (CCM/CMAC when applicable) processing resumption, rewrite the Key Registers in the AES_KEYRx registers.
| hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module. |
| Input | Pointer to the buffer containing the saved key registers to write back in the CRYP hardware block. |
| KeySize | Indicates the key size (128 or 256 bits) |
| None |
Definition at line 2028 of file stm32l4xx_hal_cryp_ex.c.
References CRYP_KEYSIZE_256B, and __CRYP_HandleTypeDef::Instance.
| void HAL_CRYPEx_Write_SuspendRegisters | ( | CRYP_HandleTypeDef * | hcryp, |
| uint8_t * | Input | ||
| ) |
In case of message GCM/GMAC (CCM/CMAC when applicable) processing resumption, rewrite the Suspend Registers in the AES_SUSPxR registers.
| hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module. |
| Input | Pointer to the buffer containing the saved suspend registers to write back in the CRYP hardware block. |
| None |
Definition at line 1961 of file stm32l4xx_hal_cryp_ex.c.
References __CRYP_HandleTypeDef::Instance.
1.7.6.1