STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Header file of CRYP HAL module. More...
Go to the source code of this file.
Data Structures | |
struct | CRYP_ConfigTypeDef |
CRYP Init Structure definition. More... | |
struct | __CRYP_HandleTypeDef |
CRYP handle Structure definition. More... | |
Macros | |
#define | HAL_CRYP_ERROR_NONE 0x00000000U |
#define | HAL_CRYP_ERROR_WRITE 0x00000001U |
#define | HAL_CRYP_ERROR_READ 0x00000002U |
#define | HAL_CRYP_ERROR_DMA 0x00000004U |
#define | HAL_CRYP_ERROR_BUSY 0x00000008U |
#define | HAL_CRYP_ERROR_TIMEOUT 0x00000010U |
#define | HAL_CRYP_ERROR_NOT_SUPPORTED 0x00000020U |
#define | HAL_CRYP_ERROR_AUTH_TAG_SEQUENCE 0x00000040U |
#define | CRYP_DATAWIDTHUNIT_WORD 0x00000000U |
#define | CRYP_DATAWIDTHUNIT_BYTE 0x00000001U |
#define | CRYP_HEADERWIDTHUNIT_WORD 0x00000000U |
#define | CRYP_HEADERWIDTHUNIT_BYTE 0x00000001U |
#define | CRYP_AES_ECB 0x00000000U |
#define | CRYP_AES_CBC AES_CR_CHMOD_0 |
#define | CRYP_AES_CTR AES_CR_CHMOD_1 |
#define | CRYP_AES_GCM_GMAC (AES_CR_CHMOD_0 | AES_CR_CHMOD_1) |
#define | CRYP_AES_CCM AES_CR_CHMOD_2 |
#define | CRYP_KEYSIZE_128B 0x00000000U |
#define | CRYP_KEYSIZE_256B AES_CR_KEYSIZE |
#define | CRYP_DATATYPE_32B 0x00000000U |
#define | CRYP_DATATYPE_16B AES_CR_DATATYPE_0 |
#define | CRYP_DATATYPE_8B AES_CR_DATATYPE_1 |
#define | CRYP_DATATYPE_1B AES_CR_DATATYPE |
#define | CRYP_IT_CCFIE AES_CR_CCFIE |
#define | CRYP_IT_ERRIE AES_CR_ERRIE |
#define | CRYP_IT_WRERR AES_SR_WRERR |
#define | CRYP_IT_RDERR AES_SR_RDERR |
#define | CRYP_IT_CCF AES_SR_CCF |
#define | CRYP_FLAG_BUSY AES_SR_BUSY |
#define | CRYP_FLAG_WRERR AES_SR_WRERR |
#define | CRYP_FLAG_RDERR AES_SR_RDERR |
#define | CRYP_FLAG_CCF AES_SR_CCF |
#define | CRYP_CCF_CLEAR AES_CR_CCFC |
#define | CRYP_ERR_CLEAR AES_CR_ERRC |
#define | CRYP_KEYIVCONFIG_ALWAYS 0x00000000U |
#define | CRYP_KEYIVCONFIG_ONCE 0x00000001U |
#define | __HAL_CRYP_RESET_HANDLE_STATE(__HANDLE__) |
Reset CRYP handle state. | |
#define | __HAL_CRYP_ENABLE(__HANDLE__) |
Enable/Disable the CRYP peripheral. | |
#define | __HAL_CRYP_DISABLE(__HANDLE__) |
#define | CRYP_FLAG_MASK 0x0000001FU |
Check whether the specified CRYP status flag is set or not. | |
#define | __HAL_CRYP_GET_FLAG(__HANDLE__, __FLAG__) |
#define | __HAL_CRYP_CLEAR_FLAG(__HANDLE__, __FLAG__) |
Clear the CRYP pending status flag. | |
#define | __HAL_CRYP_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) |
Check whether the specified CRYP interrupt source is enabled or not. | |
#define | __HAL_CRYP_GET_IT(__HANDLE__, __INTERRUPT__) |
Check whether the specified CRYP interrupt is set or not. | |
#define | __HAL_CRYP_ENABLE_IT(__HANDLE__, __INTERRUPT__) |
Enable the CRYP interrupt. | |
#define | __HAL_CRYP_DISABLE_IT(__HANDLE__, __INTERRUPT__) |
Disable the CRYP interrupt. | |
#define | IS_CRYP_ALGORITHM(ALGORITHM) |
#define | IS_CRYP_KEYSIZE(KEYSIZE) |
#define | IS_CRYP_DATATYPE(DATATYPE) |
#define | IS_CRYP_INIT(CONFIG) |
Typedefs | |
typedef struct __CRYP_HandleTypeDef | CRYP_HandleTypeDef |
CRYP handle Structure definition. | |
Enumerations | |
enum | HAL_CRYP_STATETypeDef { HAL_CRYP_STATE_RESET = 0x00U , HAL_CRYP_STATE_READY = 0x01U , HAL_CRYP_STATE_BUSY = 0x02U } |
CRYP State Structure definition. 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. | |
HAL_StatusTypeDef | HAL_CRYP_Encrypt (CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint16_t Size, uint32_t *Output, uint32_t Timeout) |
Encryption mode. | |
HAL_StatusTypeDef | HAL_CRYP_Decrypt (CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint16_t Size, uint32_t *Output, uint32_t Timeout) |
Decryption mode. | |
HAL_StatusTypeDef | HAL_CRYP_Encrypt_IT (CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint16_t Size, uint32_t *Output) |
Encryption in interrupt mode. | |
HAL_StatusTypeDef | HAL_CRYP_Decrypt_IT (CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint16_t Size, uint32_t *Output) |
Decryption in itnterrupt mode. | |
HAL_StatusTypeDef | HAL_CRYP_Encrypt_DMA (CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint16_t Size, uint32_t *Output) |
Encryption in DMA mode. | |
HAL_StatusTypeDef | HAL_CRYP_Decrypt_DMA (CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint16_t Size, uint32_t *Output) |
Decryption in DMA mode. | |
void | HAL_CRYP_IRQHandler (CRYP_HandleTypeDef *hcryp) |
This function handles cryptographic interrupt request. | |
HAL_CRYP_STATETypeDef | HAL_CRYP_GetState (CRYP_HandleTypeDef *hcryp) |
Returns the CRYP state. | |
void | HAL_CRYP_InCpltCallback (CRYP_HandleTypeDef *hcryp) |
Input FIFO transfer completed callback. | |
void | HAL_CRYP_OutCpltCallback (CRYP_HandleTypeDef *hcryp) |
Output FIFO transfer completed callback. | |
void | HAL_CRYP_ErrorCallback (CRYP_HandleTypeDef *hcryp) |
CRYP error callback. | |
uint32_t | HAL_CRYP_GetError (CRYP_HandleTypeDef *hcryp) |
Return the CRYP error code. | |
Header file of CRYP HAL module.
Copyright (c) 2016 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file stm32f4xx_hal_cryp.h.