STM32F4xx_HAL_Driver  1.8.3
Initialization and de-initialization functions

Initialization and Configuration functions. More...

+ Collaboration diagram for Initialization and de-initialization functions:

Functions

HAL_StatusTypeDef HAL_CRYP_Init (CRYP_HandleTypeDef *hcryp)
 Initializes the CRYP according to the specified parameters in the CRYP_ConfigTypeDef and creates the associated handle. More...
 
HAL_StatusTypeDef HAL_CRYP_DeInit (CRYP_HandleTypeDef *hcryp)
 De-Initializes the CRYP peripheral. More...
 
void HAL_CRYP_MspInit (CRYP_HandleTypeDef *hcryp)
 Initializes the CRYP MSP. More...
 
void HAL_CRYP_MspDeInit (CRYP_HandleTypeDef *hcryp)
 DeInitializes CRYP MSP. More...
 
HAL_StatusTypeDef HAL_CRYP_SetConfig (CRYP_HandleTypeDef *hcryp, CRYP_ConfigTypeDef *pConf)
 Configure the CRYP according to the specified parameters in the CRYP_ConfigTypeDef. More...
 
HAL_StatusTypeDef HAL_CRYP_GetConfig (CRYP_HandleTypeDef *hcryp, CRYP_ConfigTypeDef *pConf)
 Get CRYP Configuration parameters in associated handle. More...
 
HAL_StatusTypeDef HAL_CRYP_RegisterCallback (CRYP_HandleTypeDef *hcryp, HAL_CRYP_CallbackIDTypeDef CallbackID, pCRYP_CallbackTypeDef pCallback)
 Register a User CRYP Callback To be used instead of the weak predefined callback. More...
 
HAL_StatusTypeDef HAL_CRYP_UnRegisterCallback (CRYP_HandleTypeDef *hcryp, HAL_CRYP_CallbackIDTypeDef CallbackID)
 Unregister an CRYP Callback CRYP callback is redirected to the weak predefined callback. More...
 

Detailed Description

Initialization and Configuration functions.

  ========================================================================================
     ##### Initialization, de-initialization and Set and Get configuration functions #####
  ========================================================================================
    [..]  This section provides functions allowing to:
      (+) Initialize the CRYP
      (+) DeInitialize the CRYP
      (+) Initialize the CRYP MSP
      (+) DeInitialize the CRYP MSP
      (+) configure CRYP (HAL_CRYP_SetConfig) with the specified parameters in the CRYP_ConfigTypeDef
          Parameters which are configured in This section are :
          (+) Key size
          (+) Data Type : 32,16, 8 or 1bit
          (+) AlgoMode :
              - for CRYP1 IP :
                 ECB and CBC in DES/TDES Standard
                 ECB,CBC,CTR,GCM/GMAC and CCM in AES Standard.
              - for TinyAES2 IP, only ECB,CBC,CTR,GCM/GMAC and CCM in AES Standard are supported.
      (+) Get CRYP configuration (HAL_CRYP_GetConfig) from the specified parameters in the CRYP_HandleTypeDef

Function Documentation

◆ HAL_CRYP_DeInit()

HAL_StatusTypeDef HAL_CRYP_DeInit ( CRYP_HandleTypeDef hcryp)

De-Initializes the CRYP peripheral.

Parameters
hcryppointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module
Return values
HALstatus

Definition at line 505 of file stm32f4xx_hal_cryp.c.

◆ HAL_CRYP_GetConfig()

HAL_StatusTypeDef HAL_CRYP_GetConfig ( CRYP_HandleTypeDef hcryp,
CRYP_ConfigTypeDef pConf 
)

Get CRYP Configuration parameters in associated handle.

Parameters
pConfpointer to a CRYP_ConfigTypeDef structure
hcryppointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module
Return values
HALstatus

Definition at line 640 of file stm32f4xx_hal_cryp.c.

◆ HAL_CRYP_Init()

HAL_StatusTypeDef HAL_CRYP_Init ( CRYP_HandleTypeDef hcryp)

Initializes the CRYP according to the specified parameters in the CRYP_ConfigTypeDef and creates the associated handle.

Parameters
hcryppointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module
Return values
HALstatus

Definition at line 430 of file stm32f4xx_hal_cryp.c.

◆ HAL_CRYP_MspDeInit()

__weak void HAL_CRYP_MspDeInit ( CRYP_HandleTypeDef hcryp)

DeInitializes CRYP MSP.

Parameters
hcryppointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module
Return values
None

Definition at line 710 of file stm32f4xx_hal_cryp.c.

◆ HAL_CRYP_MspInit()

__weak void HAL_CRYP_MspInit ( CRYP_HandleTypeDef hcryp)

Initializes the CRYP MSP.

Parameters
hcryppointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module
Return values
None

Definition at line 694 of file stm32f4xx_hal_cryp.c.

◆ HAL_CRYP_RegisterCallback()

HAL_StatusTypeDef HAL_CRYP_RegisterCallback ( CRYP_HandleTypeDef hcryp,
HAL_CRYP_CallbackIDTypeDef  CallbackID,
pCRYP_CallbackTypeDef  pCallback 
)

Register a User CRYP Callback To be used instead of the weak predefined callback.

Parameters
hcrypcryp handle
CallbackIDID of the callback to be registered This parameter can be one of the following values:
pCallbackpointer to the Callback function
Return values
status

Definition at line 735 of file stm32f4xx_hal_cryp.c.

◆ HAL_CRYP_SetConfig()

HAL_StatusTypeDef HAL_CRYP_SetConfig ( CRYP_HandleTypeDef hcryp,
CRYP_ConfigTypeDef pConf 
)

Configure the CRYP according to the specified parameters in the CRYP_ConfigTypeDef.

Parameters
hcryppointer to a CRYP_HandleTypeDef structure
pConfpointer to a CRYP_ConfigTypeDef structure that contains the configuration information for CRYP module
Return values
HALstatus

Definition at line 558 of file stm32f4xx_hal_cryp.c.

◆ HAL_CRYP_UnRegisterCallback()

HAL_StatusTypeDef HAL_CRYP_UnRegisterCallback ( CRYP_HandleTypeDef hcryp,
HAL_CRYP_CallbackIDTypeDef  CallbackID 
)

Unregister an CRYP Callback CRYP callback is redirected to the weak predefined callback.

Parameters
hcrypcryp handle
CallbackIDID of the callback to be unregistered This parameter can be one of the following values:
Return values
status

Definition at line 829 of file stm32f4xx_hal_cryp.c.