STM32L486xx 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 694 of file stm32l4xx_hal_cryp.c.
References HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYPEx_AES().
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 1063 of file stm32l4xx_hal_cryp.c.
References HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYPEx_AES_DMA().
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 876 of file stm32l4xx_hal_cryp.c.
References HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYPEx_AES_IT().
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 601 of file stm32l4xx_hal_cryp.c.
References HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYPEx_AES().
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 970 of file stm32l4xx_hal_cryp.c.
References HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYPEx_AES_DMA().
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 785 of file stm32l4xx_hal_cryp.c.
References HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYPEx_AES_IT().
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 725 of file stm32l4xx_hal_cryp.c.
References HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYPEx_AES().
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 1094 of file stm32l4xx_hal_cryp.c.
References HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYPEx_AES_DMA().
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 906 of file stm32l4xx_hal_cryp.c.
References HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYPEx_AES_IT().
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 632 of file stm32l4xx_hal_cryp.c.
References HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYPEx_AES().
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 1001 of file stm32l4xx_hal_cryp.c.
References HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYPEx_AES_DMA().
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 816 of file stm32l4xx_hal_cryp.c.
References HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYPEx_AES_IT().
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 663 of file stm32l4xx_hal_cryp.c.
References HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYPEx_AES().
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 1032 of file stm32l4xx_hal_cryp.c.
References HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYPEx_AES_DMA().
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 846 of file stm32l4xx_hal_cryp.c.
References HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYPEx_AES_IT().
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 570 of file stm32l4xx_hal_cryp.c.
References HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYPEx_AES().
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 937 of file stm32l4xx_hal_cryp.c.
References HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYPEx_AES_DMA().
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 755 of file stm32l4xx_hal_cryp.c.
References HAL_CRYP_DeInit(), HAL_CRYP_Init(), and HAL_CRYPEx_AES_IT().