STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
CRYP Private Defines
Collaboration diagram for CRYP Private Defines:

Macros

#define CRYP_TIMEOUT_KEYPREPARATION   82U /*The latency of key preparation operation is 82 clock cycles.*/
 
#define CRYP_TIMEOUT_GCMCCMINITPHASE   299U /* The latency of GCM/CCM init phase to prepare hash subkey is 299 clock cycles.*/
 
#define CRYP_TIMEOUT_GCMCCMHEADERPHASE   290U /* The latency of GCM/CCM header phase is 290 clock cycles.*/
 
#define CRYP_PHASE_READY   0x00000001U
 
#define CRYP_PHASE_PROCESS   0x00000002U
 
#define CRYP_OPERATINGMODE_ENCRYPT   0x00000000U
 
#define CRYP_OPERATINGMODE_KEYDERIVATION   AES_CR_MODE_0
 
#define CRYP_OPERATINGMODE_DECRYPT   AES_CR_MODE_1
 
#define CRYP_OPERATINGMODE_KEYDERIVATION_DECRYPT   AES_CR_MODE
 
#define CRYP_PHASE_INIT   0x00000000U
 
#define CRYP_PHASE_HEADER   AES_CR_GCMPH_0
 
#define CRYP_PHASE_PAYLOAD   AES_CR_GCMPH_1
 
#define CRYP_PHASE_FINAL   AES_CR_GCMPH
 
#define CRYP_CCM_CTR1_0   0x07FFFFFFU
 
#define CRYP_CCM_CTR1_1   0xFFFFFF00U
 
#define CRYP_CCM_CTR1_2   0x00000001U
 

Detailed Description

Macro Definition Documentation

◆ CRYP_TIMEOUT_KEYPREPARATION

#define CRYP_TIMEOUT_KEYPREPARATION   82U /*The latency of key preparation operation is 82 clock cycles.*/

#include <stm32f4xx_hal_cryp.c>

Definition at line 279 of file stm32f4xx_hal_cryp.c.

Referenced by CRYP_AES_Decrypt_DMA(), and CRYP_AES_Decrypt_IT().

◆ CRYP_TIMEOUT_GCMCCMINITPHASE

#define CRYP_TIMEOUT_GCMCCMINITPHASE   299U /* The latency of GCM/CCM init phase to prepare hash subkey is 299 clock cycles.*/

◆ CRYP_TIMEOUT_GCMCCMHEADERPHASE

#define CRYP_TIMEOUT_GCMCCMHEADERPHASE   290U /* The latency of GCM/CCM header phase is 290 clock cycles.*/

#include <stm32f4xx_hal_cryp.c>

Definition at line 281 of file stm32f4xx_hal_cryp.c.

Referenced by CRYP_GCMCCM_SetHeaderPhase_DMA().

◆ CRYP_PHASE_READY

#define CRYP_PHASE_READY   0x00000001U

#include <stm32f4xx_hal_cryp.c>

CRYP peripheral is ready for initialization.

Definition at line 283 of file stm32f4xx_hal_cryp.c.

Referenced by HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYP_SetConfig().

◆ CRYP_PHASE_PROCESS

◆ CRYP_OPERATINGMODE_ENCRYPT

#define CRYP_OPERATINGMODE_ENCRYPT   0x00000000U

◆ CRYP_OPERATINGMODE_KEYDERIVATION

#define CRYP_OPERATINGMODE_KEYDERIVATION   AES_CR_MODE_0

#include <stm32f4xx_hal_cryp.c>

Key derivation mode only used when performing ECB and CBC decryptions (Mode 2)

Definition at line 288 of file stm32f4xx_hal_cryp.c.

Referenced by CRYP_AES_Decrypt(), CRYP_AES_Decrypt_DMA(), and CRYP_AES_Decrypt_IT().

◆ CRYP_OPERATINGMODE_DECRYPT

#define CRYP_OPERATINGMODE_DECRYPT   AES_CR_MODE_1

◆ CRYP_OPERATINGMODE_KEYDERIVATION_DECRYPT

#define CRYP_OPERATINGMODE_KEYDERIVATION_DECRYPT   AES_CR_MODE

#include <stm32f4xx_hal_cryp.c>

Key derivation and decryption only used when performing ECB and CBC decryptions (Mode 4)

Definition at line 290 of file stm32f4xx_hal_cryp.c.

Referenced by CRYP_AES_Decrypt(), CRYP_AES_Decrypt_DMA(), and CRYP_AES_Decrypt_IT().

◆ CRYP_PHASE_INIT

#define CRYP_PHASE_INIT   0x00000000U

◆ CRYP_PHASE_HEADER

◆ CRYP_PHASE_PAYLOAD

#define CRYP_PHASE_PAYLOAD   AES_CR_GCMPH_1

◆ CRYP_PHASE_FINAL

#define CRYP_PHASE_FINAL   AES_CR_GCMPH

#include <stm32f4xx_hal_cryp.c>

GCM/GMAC or CCM final phase

Definition at line 294 of file stm32f4xx_hal_cryp.c.

Referenced by CRYP_Workaround().

◆ CRYP_CCM_CTR1_0

#define CRYP_CCM_CTR1_0   0x07FFFFFFU

◆ CRYP_CCM_CTR1_1

#define CRYP_CCM_CTR1_1   0xFFFFFF00U

◆ CRYP_CCM_CTR1_2

#define CRYP_CCM_CTR1_2   0x00000001U