STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Initialization and Configuration functions. More...
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. | |
HAL_StatusTypeDef | HAL_CRYP_DeInit (CRYP_HandleTypeDef *hcryp) |
De-Initializes the CRYP peripheral. | |
void | HAL_CRYP_MspInit (CRYP_HandleTypeDef *hcryp) |
Initializes the CRYP MSP. | |
void | HAL_CRYP_MspDeInit (CRYP_HandleTypeDef *hcryp) |
DeInitializes CRYP MSP. | |
HAL_StatusTypeDef | HAL_CRYP_SetConfig (CRYP_HandleTypeDef *hcryp, CRYP_ConfigTypeDef *pConf) |
Configure the CRYP according to the specified parameters in the CRYP_ConfigTypeDef. | |
HAL_StatusTypeDef | HAL_CRYP_GetConfig (CRYP_HandleTypeDef *hcryp, CRYP_ConfigTypeDef *pConf) |
Get CRYP Configuration parameters in associated handle. | |
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
HAL_StatusTypeDef HAL_CRYP_Init | ( | CRYP_HandleTypeDef * | hcryp | ) |
#include <stm32f4xx_hal_cryp.h>
Initializes the CRYP according to the specified parameters in the CRYP_ConfigTypeDef and creates the associated handle.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
HAL | status |
Definition at line 430 of file stm32f4xx_hal_cryp.c.
References CRYP_ConfigTypeDef::Algorithm, assert_param, CRYP_PHASE_READY, CRYP_ConfigTypeDef::DataType, __CRYP_HandleTypeDef::ErrorCode, HAL_CRYP_ERROR_NONE, HAL_CRYP_ErrorCallback(), HAL_CRYP_InCpltCallback(), HAL_CRYP_MspInit(), HAL_CRYP_OutCpltCallback(), HAL_CRYP_STATE_READY, HAL_CRYP_STATE_RESET, HAL_ERROR, HAL_OK, HAL_UNLOCKED, __CRYP_HandleTypeDef::Init, __CRYP_HandleTypeDef::Instance, IS_CRYP_ALGORITHM, IS_CRYP_DATATYPE, IS_CRYP_INIT, IS_CRYP_KEYSIZE, CRYP_ConfigTypeDef::KeyIVConfigSkip, CRYP_ConfigTypeDef::KeySize, __CRYP_HandleTypeDef::Lock, __CRYP_HandleTypeDef::Phase, and __CRYP_HandleTypeDef::State.
HAL_StatusTypeDef HAL_CRYP_DeInit | ( | CRYP_HandleTypeDef * | hcryp | ) |
#include <stm32f4xx_hal_cryp.h>
De-Initializes the CRYP peripheral.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
HAL | status |
Definition at line 505 of file stm32f4xx_hal_cryp.c.
References __HAL_CRYP_DISABLE, __HAL_UNLOCK, CRYP_PHASE_READY, __CRYP_HandleTypeDef::CrypHeaderCount, __CRYP_HandleTypeDef::CrypInCount, __CRYP_HandleTypeDef::CrypOutCount, HAL_CRYP_MspDeInit(), HAL_CRYP_STATE_RESET, HAL_ERROR, HAL_OK, __CRYP_HandleTypeDef::Phase, and __CRYP_HandleTypeDef::State.
__weak void HAL_CRYP_MspInit | ( | CRYP_HandleTypeDef * | hcryp | ) |
#include <stm32f4xx_hal_cryp.h>
Initializes the CRYP MSP.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
None |
Definition at line 694 of file stm32f4xx_hal_cryp.c.
References UNUSED.
Referenced by HAL_CRYP_Init().
__weak void HAL_CRYP_MspDeInit | ( | CRYP_HandleTypeDef * | hcryp | ) |
#include <stm32f4xx_hal_cryp.h>
DeInitializes CRYP MSP.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
None |
Definition at line 710 of file stm32f4xx_hal_cryp.c.
References UNUSED.
Referenced by HAL_CRYP_DeInit().
HAL_StatusTypeDef HAL_CRYP_SetConfig | ( | CRYP_HandleTypeDef * | hcryp, |
CRYP_ConfigTypeDef * | pConf ) |
#include <stm32f4xx_hal_cryp.h>
Configure the CRYP according to the specified parameters in the CRYP_ConfigTypeDef.
hcryp | pointer to a CRYP_HandleTypeDef structure |
pConf | pointer to a CRYP_ConfigTypeDef structure that contains the configuration information for CRYP module |
HAL | status |
Definition at line 558 of file stm32f4xx_hal_cryp.c.
References __HAL_CRYP_CLEAR_FLAG, __HAL_LOCK, __HAL_UNLOCK, CRYP_ConfigTypeDef::Algorithm, assert_param, CRYP_ConfigTypeDef::B0, CRYP_ERR_CLEAR, CRYP_PHASE_READY, CRYP_ConfigTypeDef::DataType, CRYP_ConfigTypeDef::DataWidthUnit, __CRYP_HandleTypeDef::ErrorCode, HAL_CRYP_ERROR_BUSY, HAL_CRYP_ERROR_NONE, HAL_CRYP_STATE_BUSY, HAL_CRYP_STATE_READY, HAL_ERROR, HAL_OK, CRYP_ConfigTypeDef::Header, CRYP_ConfigTypeDef::HeaderSize, CRYP_ConfigTypeDef::HeaderWidthUnit, __CRYP_HandleTypeDef::Init, __CRYP_HandleTypeDef::Instance, IS_CRYP_ALGORITHM, IS_CRYP_DATATYPE, IS_CRYP_KEYSIZE, CRYP_ConfigTypeDef::KeyIVConfigSkip, CRYP_ConfigTypeDef::KeySize, __CRYP_HandleTypeDef::Phase, CRYP_ConfigTypeDef::pInitVect, CRYP_ConfigTypeDef::pKey, and __CRYP_HandleTypeDef::State.
HAL_StatusTypeDef HAL_CRYP_GetConfig | ( | CRYP_HandleTypeDef * | hcryp, |
CRYP_ConfigTypeDef * | pConf ) |
#include <stm32f4xx_hal_cryp.h>
Get CRYP Configuration parameters in associated handle.
pConf | pointer to a CRYP_ConfigTypeDef structure |
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
HAL | status |
Definition at line 640 of file stm32f4xx_hal_cryp.c.
References __HAL_LOCK, __HAL_UNLOCK, CRYP_ConfigTypeDef::Algorithm, CRYP_ConfigTypeDef::B0, CRYP_ConfigTypeDef::DataType, CRYP_ConfigTypeDef::DataWidthUnit, __CRYP_HandleTypeDef::ErrorCode, HAL_CRYP_ERROR_BUSY, HAL_CRYP_STATE_BUSY, HAL_CRYP_STATE_READY, HAL_ERROR, HAL_OK, CRYP_ConfigTypeDef::Header, CRYP_ConfigTypeDef::HeaderSize, CRYP_ConfigTypeDef::HeaderWidthUnit, __CRYP_HandleTypeDef::Init, CRYP_ConfigTypeDef::KeyIVConfigSkip, CRYP_ConfigTypeDef::KeySize, CRYP_ConfigTypeDef::pInitVect, CRYP_ConfigTypeDef::pKey, and __CRYP_HandleTypeDef::State.