STM32L443xx HAL User Manual
|
Processing functions. More...
Functions | |
HAL_StatusTypeDef | HAL_CRYP_AESECB_Encrypt (CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData, uint32_t Timeout) |
Encrypt pPlainData in AES ECB encryption mode. | |
HAL_StatusTypeDef | HAL_CRYP_AESCBC_Encrypt (CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData, uint32_t Timeout) |
Encrypt pPlainData in AES CBC encryption mode with key derivation. | |
HAL_StatusTypeDef | HAL_CRYP_AESCTR_Encrypt (CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData, uint32_t Timeout) |
Encrypt pPlainData in AES CTR encryption mode. | |
HAL_StatusTypeDef | HAL_CRYP_AESECB_Decrypt (CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData, uint32_t Timeout) |
Decrypt pCypherData in AES ECB decryption mode with key derivation, the decyphered data are available in pPlainData. | |
HAL_StatusTypeDef | HAL_CRYP_AESCBC_Decrypt (CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData, uint32_t Timeout) |
Decrypt pCypherData in AES ECB decryption mode with key derivation, the decyphered data are available in pPlainData. | |
HAL_StatusTypeDef | HAL_CRYP_AESCTR_Decrypt (CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData, uint32_t Timeout) |
Decrypt pCypherData in AES CTR decryption mode, the decyphered data are available in pPlainData. | |
HAL_StatusTypeDef | HAL_CRYP_AESECB_Encrypt_IT (CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData) |
Encrypt pPlainData in AES ECB encryption mode using Interrupt, the cypher data are available in pCypherData. | |
HAL_StatusTypeDef | HAL_CRYP_AESCBC_Encrypt_IT (CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData) |
Encrypt pPlainData in AES CBC encryption mode using Interrupt, the cypher data are available in pCypherData. | |
HAL_StatusTypeDef | HAL_CRYP_AESCTR_Encrypt_IT (CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData) |
Encrypt pPlainData in AES CTR encryption mode using Interrupt, the cypher data are available in pCypherData. | |
HAL_StatusTypeDef | HAL_CRYP_AESECB_Decrypt_IT (CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData) |
Decrypt pCypherData in AES ECB decryption mode using Interrupt, the decyphered data are available in pPlainData. | |
HAL_StatusTypeDef | HAL_CRYP_AESCBC_Decrypt_IT (CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData) |
Decrypt pCypherData in AES CBC decryption mode using Interrupt, the decyphered data are available in pPlainData. | |
HAL_StatusTypeDef | HAL_CRYP_AESCTR_Decrypt_IT (CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData) |
Decrypt pCypherData in AES CTR decryption mode using Interrupt, the decyphered data are available in pPlainData. | |
HAL_StatusTypeDef | HAL_CRYP_AESECB_Encrypt_DMA (CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData) |
Encrypt pPlainData in AES ECB encryption mode using DMA, the cypher data are available in pCypherData. | |
HAL_StatusTypeDef | HAL_CRYP_AESCBC_Encrypt_DMA (CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData) |
Encrypt pPlainData in AES CBC encryption mode using DMA, the cypher data are available in pCypherData. | |
HAL_StatusTypeDef | HAL_CRYP_AESCTR_Encrypt_DMA (CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData) |
Encrypt pPlainData in AES CTR encryption mode using DMA, the cypher data are available in pCypherData. | |
HAL_StatusTypeDef | HAL_CRYP_AESECB_Decrypt_DMA (CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData) |
Decrypt pCypherData in AES ECB decryption mode using DMA, the decyphered data are available in pPlainData. | |
HAL_StatusTypeDef | HAL_CRYP_AESCBC_Decrypt_DMA (CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData) |
Decrypt pCypherData in AES CBC decryption mode using DMA, the decyphered data are available in pPlainData. | |
HAL_StatusTypeDef | HAL_CRYP_AESCTR_Decrypt_DMA (CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData) |
Decrypt pCypherData in AES CTR decryption mode using DMA, the decyphered data are available in pPlainData. |
Processing functions.
============================================================================== ##### AES processing functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Encrypt plaintext using AES algorithm in different chaining modes (+) Decrypt cyphertext using AES algorithm in different chaining modes [..] Three processing functions are available: (+) Polling mode (+) Interrupt mode (+) DMA mode
HAL_StatusTypeDef HAL_CRYP_AESCBC_Decrypt | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pCypherData, | ||
uint16_t | Size, | ||
uint8_t * | pPlainData, | ||
uint32_t | Timeout | ||
) |
Decrypt pCypherData in AES ECB decryption mode with key derivation, the decyphered data are available in pPlainData.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
pCypherData | Pointer to the cyphertext buffer |
Size | Length of the plaintext buffer in bytes, must be a multiple of 16. |
pPlainData | Pointer to the plaintext buffer |
Timeout | Specify Timeout value |
HAL | status |
Definition at line 679 of file stm32l4xx_hal_cryp.c.
References CRYP_InitTypeDef::ChainingMode, CRYP_ALGOMODE_KEYDERIVATION_DECRYPT, CRYP_CHAINMODE_AES_CBC, CRYP_KEY_WRITE_ENABLE, HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES(), __CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeyWriteFlag, and CRYP_InitTypeDef::OperatingMode.
HAL_StatusTypeDef HAL_CRYP_AESCBC_Decrypt_DMA | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pCypherData, | ||
uint16_t | Size, | ||
uint8_t * | pPlainData | ||
) |
Decrypt pCypherData in AES CBC decryption mode using DMA, the decyphered data are available in pPlainData.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
pCypherData | Pointer to the cyphertext buffer |
Size | Length of the plaintext buffer in bytes, must be a multiple of 16. |
pPlainData | Pointer to the plaintext buffer |
HAL | status |
Definition at line 1048 of file stm32l4xx_hal_cryp.c.
References CRYP_InitTypeDef::ChainingMode, CRYP_ALGOMODE_KEYDERIVATION_DECRYPT, CRYP_CHAINMODE_AES_CBC, CRYP_KEY_WRITE_ENABLE, HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES_DMA(), __CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeyWriteFlag, and CRYP_InitTypeDef::OperatingMode.
HAL_StatusTypeDef HAL_CRYP_AESCBC_Decrypt_IT | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pCypherData, | ||
uint16_t | Size, | ||
uint8_t * | pPlainData | ||
) |
Decrypt pCypherData in AES CBC decryption mode using Interrupt, the decyphered data are available in pPlainData.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
pCypherData | Pointer to the cyphertext buffer |
Size | Length of the plaintext buffer in bytes, must be a multiple of 16. |
pPlainData | Pointer to the plaintext buffer |
HAL | status |
Definition at line 861 of file stm32l4xx_hal_cryp.c.
References CRYP_InitTypeDef::ChainingMode, CRYP_ALGOMODE_KEYDERIVATION_DECRYPT, CRYP_CHAINMODE_AES_CBC, CRYP_KEY_WRITE_ENABLE, HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES_IT(), __CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeyWriteFlag, and CRYP_InitTypeDef::OperatingMode.
HAL_StatusTypeDef HAL_CRYP_AESCBC_Encrypt | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pPlainData, | ||
uint16_t | Size, | ||
uint8_t * | pCypherData, | ||
uint32_t | Timeout | ||
) |
Encrypt pPlainData in AES CBC encryption mode with key derivation.
The cypher data are available in pCypherData.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
pPlainData | Pointer to the plaintext buffer |
Size | Length of the plaintext buffer in bytes, must be a multiple of 16. |
pCypherData | Pointer to the cyphertext buffer |
Timeout | Specify Timeout value |
HAL | status |
Definition at line 586 of file stm32l4xx_hal_cryp.c.
References CRYP_InitTypeDef::ChainingMode, CRYP_ALGOMODE_ENCRYPT, CRYP_CHAINMODE_AES_CBC, CRYP_KEY_WRITE_ENABLE, HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES(), __CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeyWriteFlag, and CRYP_InitTypeDef::OperatingMode.
HAL_StatusTypeDef HAL_CRYP_AESCBC_Encrypt_DMA | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pPlainData, | ||
uint16_t | Size, | ||
uint8_t * | pCypherData | ||
) |
Encrypt pPlainData in AES CBC encryption mode using DMA, the cypher data are available in pCypherData.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
pPlainData | Pointer to the plaintext buffer |
Size | Length of the plaintext buffer, must be a multiple of 16. |
pCypherData | Pointer to the cyphertext buffer |
HAL | status |
Definition at line 955 of file stm32l4xx_hal_cryp.c.
References CRYP_InitTypeDef::ChainingMode, CRYP_ALGOMODE_ENCRYPT, CRYP_CHAINMODE_AES_CBC, CRYP_KEY_WRITE_ENABLE, HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES_DMA(), __CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeyWriteFlag, and CRYP_InitTypeDef::OperatingMode.
HAL_StatusTypeDef HAL_CRYP_AESCBC_Encrypt_IT | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pPlainData, | ||
uint16_t | Size, | ||
uint8_t * | pCypherData | ||
) |
Encrypt pPlainData in AES CBC encryption mode using Interrupt, the cypher data are available in pCypherData.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
pPlainData | Pointer to the plaintext buffer |
Size | Length of the plaintext buffer in bytes, must be a multiple of 16. |
pCypherData | Pointer to the cyphertext buffer |
HAL | status |
Definition at line 770 of file stm32l4xx_hal_cryp.c.
References CRYP_InitTypeDef::ChainingMode, CRYP_ALGOMODE_ENCRYPT, CRYP_CHAINMODE_AES_CBC, CRYP_KEY_WRITE_ENABLE, HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES_IT(), __CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeyWriteFlag, and CRYP_InitTypeDef::OperatingMode.
HAL_StatusTypeDef HAL_CRYP_AESCTR_Decrypt | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pCypherData, | ||
uint16_t | Size, | ||
uint8_t * | pPlainData, | ||
uint32_t | Timeout | ||
) |
Decrypt pCypherData in AES CTR decryption mode, the decyphered data are available in pPlainData.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
pCypherData | Pointer to the cyphertext buffer |
Size | Length of the plaintext buffer in bytes, must be a multiple of 16. |
pPlainData | Pointer to the plaintext buffer |
Timeout | Specify Timeout value |
HAL | status |
Definition at line 710 of file stm32l4xx_hal_cryp.c.
References CRYP_InitTypeDef::ChainingMode, CRYP_ALGOMODE_DECRYPT, CRYP_CHAINMODE_AES_CTR, CRYP_KEY_WRITE_ENABLE, HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES(), __CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeyWriteFlag, and CRYP_InitTypeDef::OperatingMode.
HAL_StatusTypeDef HAL_CRYP_AESCTR_Decrypt_DMA | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pCypherData, | ||
uint16_t | Size, | ||
uint8_t * | pPlainData | ||
) |
Decrypt pCypherData in AES CTR decryption mode using DMA, the decyphered data are available in pPlainData.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
pCypherData | Pointer to the cyphertext buffer |
Size | Length of the plaintext buffer in bytes, must be a multiple of 16. |
pPlainData | Pointer to the plaintext buffer |
HAL | status |
Definition at line 1079 of file stm32l4xx_hal_cryp.c.
References CRYP_InitTypeDef::ChainingMode, CRYP_ALGOMODE_DECRYPT, CRYP_CHAINMODE_AES_CTR, CRYP_KEY_WRITE_ENABLE, HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES_DMA(), __CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeyWriteFlag, and CRYP_InitTypeDef::OperatingMode.
HAL_StatusTypeDef HAL_CRYP_AESCTR_Decrypt_IT | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pCypherData, | ||
uint16_t | Size, | ||
uint8_t * | pPlainData | ||
) |
Decrypt pCypherData in AES CTR decryption mode using Interrupt, the decyphered data are available in pPlainData.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
pCypherData | Pointer to the cyphertext buffer |
Size | Length of the plaintext buffer in bytes, must be a multiple of 16. |
pPlainData | Pointer to the plaintext buffer |
HAL | status |
Definition at line 891 of file stm32l4xx_hal_cryp.c.
References CRYP_InitTypeDef::ChainingMode, CRYP_ALGOMODE_DECRYPT, CRYP_CHAINMODE_AES_CTR, CRYP_KEY_WRITE_ENABLE, HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES_IT(), __CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeyWriteFlag, and CRYP_InitTypeDef::OperatingMode.
HAL_StatusTypeDef HAL_CRYP_AESCTR_Encrypt | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pPlainData, | ||
uint16_t | Size, | ||
uint8_t * | pCypherData, | ||
uint32_t | Timeout | ||
) |
Encrypt pPlainData in AES CTR encryption mode.
The cypher data are available in pCypherData
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
pPlainData | Pointer to the plaintext buffer |
Size | Length of the plaintext buffer in bytes, must be a multiple of 16. |
pCypherData | Pointer to the cyphertext buffer |
Timeout | Specify Timeout value |
HAL | status |
Definition at line 617 of file stm32l4xx_hal_cryp.c.
References CRYP_InitTypeDef::ChainingMode, CRYP_ALGOMODE_ENCRYPT, CRYP_CHAINMODE_AES_CTR, CRYP_KEY_WRITE_ENABLE, HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES(), __CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeyWriteFlag, and CRYP_InitTypeDef::OperatingMode.
HAL_StatusTypeDef HAL_CRYP_AESCTR_Encrypt_DMA | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pPlainData, | ||
uint16_t | Size, | ||
uint8_t * | pCypherData | ||
) |
Encrypt pPlainData in AES CTR encryption mode using DMA, the cypher data are available in pCypherData.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
pPlainData | Pointer to the plaintext buffer |
Size | Length of the plaintext buffer in bytes, must be a multiple of 16. |
pCypherData | Pointer to the cyphertext buffer. |
HAL | status |
Definition at line 986 of file stm32l4xx_hal_cryp.c.
References CRYP_InitTypeDef::ChainingMode, CRYP_ALGOMODE_ENCRYPT, CRYP_CHAINMODE_AES_CTR, CRYP_KEY_WRITE_ENABLE, HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES_DMA(), __CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeyWriteFlag, and CRYP_InitTypeDef::OperatingMode.
HAL_StatusTypeDef HAL_CRYP_AESCTR_Encrypt_IT | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pPlainData, | ||
uint16_t | Size, | ||
uint8_t * | pCypherData | ||
) |
Encrypt pPlainData in AES CTR encryption mode using Interrupt, the cypher data are available in pCypherData.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
pPlainData | Pointer to the plaintext buffer |
Size | Length of the plaintext buffer in bytes, must be a multiple of 16. |
pCypherData | Pointer to the cyphertext buffer |
HAL | status |
Definition at line 801 of file stm32l4xx_hal_cryp.c.
References CRYP_InitTypeDef::ChainingMode, CRYP_ALGOMODE_ENCRYPT, CRYP_CHAINMODE_AES_CTR, CRYP_KEY_WRITE_ENABLE, HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES_IT(), __CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeyWriteFlag, and CRYP_InitTypeDef::OperatingMode.
HAL_StatusTypeDef HAL_CRYP_AESECB_Decrypt | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pCypherData, | ||
uint16_t | Size, | ||
uint8_t * | pPlainData, | ||
uint32_t | Timeout | ||
) |
Decrypt pCypherData in AES ECB decryption mode with key derivation, the decyphered data are available in pPlainData.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
pCypherData | Pointer to the cyphertext buffer |
Size | Length of the plaintext buffer in bytes, must be a multiple of 16. |
pPlainData | Pointer to the plaintext buffer |
Timeout | Specify Timeout value |
HAL | status |
Definition at line 648 of file stm32l4xx_hal_cryp.c.
References CRYP_InitTypeDef::ChainingMode, CRYP_ALGOMODE_KEYDERIVATION_DECRYPT, CRYP_CHAINMODE_AES_ECB, CRYP_KEY_WRITE_ENABLE, HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES(), __CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeyWriteFlag, and CRYP_InitTypeDef::OperatingMode.
HAL_StatusTypeDef HAL_CRYP_AESECB_Decrypt_DMA | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pCypherData, | ||
uint16_t | Size, | ||
uint8_t * | pPlainData | ||
) |
Decrypt pCypherData in AES ECB decryption mode using DMA, the decyphered data are available in pPlainData.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
pCypherData | Pointer to the cyphertext buffer |
Size | Length of the plaintext buffer in bytes, must be a multiple of 16. |
pPlainData | Pointer to the plaintext buffer |
HAL | status |
Definition at line 1017 of file stm32l4xx_hal_cryp.c.
References CRYP_InitTypeDef::ChainingMode, CRYP_ALGOMODE_KEYDERIVATION_DECRYPT, CRYP_CHAINMODE_AES_ECB, CRYP_KEY_WRITE_ENABLE, HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES_DMA(), __CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeyWriteFlag, and CRYP_InitTypeDef::OperatingMode.
HAL_StatusTypeDef HAL_CRYP_AESECB_Decrypt_IT | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pCypherData, | ||
uint16_t | Size, | ||
uint8_t * | pPlainData | ||
) |
Decrypt pCypherData in AES ECB decryption mode using Interrupt, the decyphered data are available in pPlainData.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
pCypherData | Pointer to the cyphertext buffer |
Size | Length of the plaintext buffer in bytes, must be a multiple of 16. |
pPlainData | Pointer to the plaintext buffer. |
HAL | status |
Definition at line 831 of file stm32l4xx_hal_cryp.c.
References CRYP_InitTypeDef::ChainingMode, CRYP_ALGOMODE_KEYDERIVATION_DECRYPT, CRYP_CHAINMODE_AES_ECB, CRYP_KEY_WRITE_ENABLE, HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES_IT(), __CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeyWriteFlag, and CRYP_InitTypeDef::OperatingMode.
HAL_StatusTypeDef HAL_CRYP_AESECB_Encrypt | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pPlainData, | ||
uint16_t | Size, | ||
uint8_t * | pCypherData, | ||
uint32_t | Timeout | ||
) |
Encrypt pPlainData in AES ECB encryption mode.
The cypher data are available in pCypherData.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
pPlainData | Pointer to the plaintext buffer |
Size | Length of the plaintext buffer in bytes, must be a multiple of 16. |
pCypherData | Pointer to the cyphertext buffer |
Timeout | Specify Timeout value |
HAL | status |
Definition at line 555 of file stm32l4xx_hal_cryp.c.
References CRYP_InitTypeDef::ChainingMode, CRYP_ALGOMODE_ENCRYPT, CRYP_CHAINMODE_AES_ECB, CRYP_KEY_WRITE_ENABLE, HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES(), __CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeyWriteFlag, and CRYP_InitTypeDef::OperatingMode.
HAL_StatusTypeDef HAL_CRYP_AESECB_Encrypt_DMA | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pPlainData, | ||
uint16_t | Size, | ||
uint8_t * | pCypherData | ||
) |
Encrypt pPlainData in AES ECB encryption mode using DMA, the cypher data are available in pCypherData.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
pPlainData | Pointer to the plaintext buffer |
Size | Length of the plaintext buffer in bytes, must be a multiple of 16. |
pCypherData | Pointer to the cyphertext buffer |
HAL | status |
Definition at line 922 of file stm32l4xx_hal_cryp.c.
References CRYP_InitTypeDef::ChainingMode, CRYP_ALGOMODE_ENCRYPT, CRYP_CHAINMODE_AES_ECB, CRYP_KEY_WRITE_ENABLE, HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES_DMA(), __CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeyWriteFlag, and CRYP_InitTypeDef::OperatingMode.
HAL_StatusTypeDef HAL_CRYP_AESECB_Encrypt_IT | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pPlainData, | ||
uint16_t | Size, | ||
uint8_t * | pCypherData | ||
) |
Encrypt pPlainData in AES ECB encryption mode using Interrupt, the cypher data are available in pCypherData.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
pPlainData | Pointer to the plaintext buffer |
Size | Length of the plaintext buffer in bytes, must be a multiple of 16. |
pCypherData | Pointer to the cyphertext buffer |
HAL | status |
Definition at line 740 of file stm32l4xx_hal_cryp.c.
References CRYP_InitTypeDef::ChainingMode, CRYP_ALGOMODE_ENCRYPT, CRYP_CHAINMODE_AES_ECB, CRYP_KEY_WRITE_ENABLE, HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES_IT(), __CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeyWriteFlag, and CRYP_InitTypeDef::OperatingMode.