Initialization and Configuration functions.
More...
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
- 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
void CRYP_Cmd |
( |
FunctionalState |
NewState | ) |
|
Enables or disables the CRYP peripheral.
- Parameters
-
NewState,: | new state of the CRYP peripheral. This parameter can be: ENABLE or DISABLE. |
- Return values
-
void CRYP_DeInit |
( |
void |
| ) |
|
Deinitializes the CRYP peripheral registers to their default reset values.
- Parameters
-
- Return values
-
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
-
- Return values
-
Initializes the CRYP peripheral according to the specified parameters in the CRYP_InitStruct.
- Parameters
-
CRYP_InitStruct,: | pointer to a CRYP_InitTypeDef structure that contains the configuration information for the CRYP peripheral. |
- Return values
-
Initializes the CRYP Initialization Vectors(IV) according to the specified parameters in the CRYP_IVInitStruct.
- Parameters
-
CRYP_IVInitStruct,: | pointer to a CRYP_IVInitTypeDef structure that contains the configuration information for the CRYP Initialization Vectors(IV). |
- Return values
-
Fills each CRYP_IVInitStruct member with its default value.
- Parameters
-
CRYP_IVInitStruct,: | pointer to a CRYP_IVInitTypeDef Initialization Vectors(IV) structure which will be initialized. |
- Return values
-
Initializes the CRYP Keys according to the specified parameters in the CRYP_KeyInitStruct.
- Parameters
-
CRYP_KeyInitStruct,: | pointer to a CRYP_KeyInitTypeDef structure that contains the configuration information for the CRYP Keys. |
- Return values
-
Fills each CRYP_KeyInitStruct member with its default value.
- Parameters
-
- Return values
-
Fills each CRYP_InitStruct member with its default value.
- Parameters
-
CRYP_InitStruct,: | pointer to a CRYP_InitTypeDef structure which will be initialized. |
- Return values
-