CARME-M4 BSP  V1.5
Initialization and Configuration functions

Initialization and Configuration functions. More...

+ Collaboration diagram for Initialization and Configuration functions:

Functions

void CRYP_DeInit (void)
 Deinitializes the CRYP peripheral registers to their default reset values. More...
 
void CRYP_Init (CRYP_InitTypeDef *CRYP_InitStruct)
 Initializes the CRYP peripheral according to the specified parameters in the CRYP_InitStruct. More...
 
void CRYP_StructInit (CRYP_InitTypeDef *CRYP_InitStruct)
 Fills each CRYP_InitStruct member with its default value. More...
 
void CRYP_KeyInit (CRYP_KeyInitTypeDef *CRYP_KeyInitStruct)
 Initializes the CRYP Keys according to the specified parameters in the CRYP_KeyInitStruct. More...
 
void CRYP_KeyStructInit (CRYP_KeyInitTypeDef *CRYP_KeyInitStruct)
 Fills each CRYP_KeyInitStruct member with its default value. More...
 
void CRYP_IVInit (CRYP_IVInitTypeDef *CRYP_IVInitStruct)
 Initializes the CRYP Initialization Vectors(IV) according to the specified parameters in the CRYP_IVInitStruct. More...
 
void CRYP_IVStructInit (CRYP_IVInitTypeDef *CRYP_IVInitStruct)
 Fills each CRYP_IVInitStruct member with its default value. More...
 
void CRYP_PhaseConfig (uint32_t CRYP_Phase)
 Configures the AES-CCM and AES-GCM phases. More...
 
void CRYP_FIFOFlush (void)
 Flushes the IN and OUT FIFOs (that is read and write pointers of the FIFOs are reset) More...
 
void CRYP_Cmd (FunctionalState NewState)
 Enables or disables the CRYP peripheral. More...
 

Detailed Description

Initialization and Configuration functions.

 ===============================================================================
             ##### Initialization and Configuration functions #####
 ===============================================================================  
 [..] This section provides functions allowing to 
   (+) Initialize the cryptographic Processor using CRYP_Init() function 
       (++)  Encrypt or Decrypt 
       (++)  mode : TDES-ECB, TDES-CBC, 
                    DES-ECB, DES-CBC, 
                    AES-ECB, AES-CBC, AES-CTR, AES-Key, AES-GCM, AES-CCM 
       (++) DataType :  32-bit data, 16-bit data, bit data or bit-string
       (++) Key Size (only in AES modes)
   (+) Configure the Encrypt or Decrypt Key using CRYP_KeyInit() function 
   (+) Configure the Initialization Vectors(IV) for CBC and CTR modes using 
       CRYP_IVInit() function.  
   (+) Flushes the IN and OUT FIFOs : using CRYP_FIFOFlush() function.                         
   (+) Enable or disable the CRYP Processor using CRYP_Cmd() function 

Function Documentation

void CRYP_Cmd ( FunctionalState  NewState)

Enables or disables the CRYP peripheral.

Parameters
NewStatenew state of the CRYP peripheral. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 403 of file stm32f4xx_cryp.c.

+ Here is the caller graph for this function:

void CRYP_DeInit ( void  )

Deinitializes the CRYP peripheral registers to their default reset values.

Parameters
None
Return values
None

Definition at line 219 of file stm32f4xx_cryp.c.

+ Here is the call graph for this function:

void CRYP_FIFOFlush ( void  )

Flushes the IN and OUT FIFOs (that is read and write pointers of the FIFOs are reset)

Note
The FIFOs must be flushed only when BUSY flag is reset.
Parameters
None
Return values
None

Definition at line 391 of file stm32f4xx_cryp.c.

+ Here is the caller graph for this function:

void CRYP_Init ( CRYP_InitTypeDef CRYP_InitStruct)

Initializes the CRYP peripheral according to the specified parameters in the CRYP_InitStruct.

Parameters
CRYP_InitStructpointer to a CRYP_InitTypeDef structure that contains the configuration information for the CRYP peripheral.
Return values
None

Definition at line 235 of file stm32f4xx_cryp.c.

+ Here is the caller graph for this function:

void CRYP_IVInit ( CRYP_IVInitTypeDef CRYP_IVInitStruct)

Initializes the CRYP Initialization Vectors(IV) according to the specified parameters in the CRYP_IVInitStruct.

Parameters
CRYP_IVInitStructpointer to a CRYP_IVInitTypeDef structure that contains the configuration information for the CRYP Initialization Vectors(IV).
Return values
None

Definition at line 333 of file stm32f4xx_cryp.c.

+ Here is the caller graph for this function:

void CRYP_IVStructInit ( CRYP_IVInitTypeDef CRYP_IVInitStruct)

Fills each CRYP_IVInitStruct member with its default value.

Parameters
CRYP_IVInitStructpointer to a CRYP_IVInitTypeDef Initialization Vectors(IV) structure which will be initialized.
Return values
None

Definition at line 347 of file stm32f4xx_cryp.c.

void CRYP_KeyInit ( CRYP_KeyInitTypeDef CRYP_KeyInitStruct)

Initializes the CRYP Keys according to the specified parameters in the CRYP_KeyInitStruct.

Parameters
CRYP_KeyInitStructpointer to a CRYP_KeyInitTypeDef structure that contains the configuration information for the CRYP Keys.
Return values
None

Definition at line 296 of file stm32f4xx_cryp.c.

+ Here is the caller graph for this function:

void CRYP_KeyStructInit ( CRYP_KeyInitTypeDef CRYP_KeyInitStruct)

Fills each CRYP_KeyInitStruct member with its default value.

Parameters
CRYP_KeyInitStructpointer to a CRYP_KeyInitTypeDef structure which will be initialized.
Return values
None

Definition at line 315 of file stm32f4xx_cryp.c.

+ Here is the caller graph for this function:

void CRYP_PhaseConfig ( uint32_t  CRYP_Phase)

Configures the AES-CCM and AES-GCM phases.

Note
This function is used only with AES-CCM or AES-GCM Algorithms
Parameters
CRYP_Phasespecifies the CRYP AES-CCM and AES-GCM phase to be configured. This parameter can be one of the following values:
  • CRYP_Phase_Init: Initialization phase
  • CRYP_Phase_Header: Header phase
  • CRYP_Phase_Payload: Payload phase
  • CRYP_Phase_Final: Final phase
Return values
None

Definition at line 366 of file stm32f4xx_cryp.c.

+ Here is the caller graph for this function:

void CRYP_StructInit ( CRYP_InitTypeDef CRYP_InitStruct)

Fills each CRYP_InitStruct member with its default value.

Parameters
CRYP_InitStructpointer to a CRYP_InitTypeDef structure which will be initialized.
Return values
None

Definition at line 274 of file stm32f4xx_cryp.c.