STM32F439xx HAL User Manual
|
Extended processing functions. More...
Functions | |
HAL_StatusTypeDef | HAL_CRYPEx_AESCCM_Encrypt (CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData, uint32_t Timeout) |
Initializes the CRYP peripheral in AES CCM encryption mode then encrypt pPlainData. | |
HAL_StatusTypeDef | HAL_CRYPEx_AESGCM_Encrypt (CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData, uint32_t Timeout) |
Initializes the CRYP peripheral in AES GCM encryption mode then encrypt pPlainData. | |
HAL_StatusTypeDef | HAL_CRYPEx_AESGCM_Decrypt (CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData, uint32_t Timeout) |
Initializes the CRYP peripheral in AES GCM decryption mode then decrypted pCypherData. | |
HAL_StatusTypeDef | HAL_CRYPEx_AESGCM_Finish (CRYP_HandleTypeDef *hcryp, uint32_t Size, uint8_t *AuthTag, uint32_t Timeout) |
Computes the authentication TAG. | |
HAL_StatusTypeDef | HAL_CRYPEx_AESCCM_Finish (CRYP_HandleTypeDef *hcryp, uint8_t *AuthTag, uint32_t Timeout) |
Computes the authentication TAG for AES CCM mode. | |
HAL_StatusTypeDef | HAL_CRYPEx_AESCCM_Decrypt (CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData, uint32_t Timeout) |
Initializes the CRYP peripheral in AES CCM decryption mode then decrypted pCypherData. | |
HAL_StatusTypeDef | HAL_CRYPEx_AESGCM_Encrypt_IT (CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData) |
Initializes the CRYP peripheral in AES GCM encryption mode using IT. | |
HAL_StatusTypeDef | HAL_CRYPEx_AESCCM_Encrypt_IT (CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData) |
Initializes the CRYP peripheral in AES CCM encryption mode using interrupt. | |
HAL_StatusTypeDef | HAL_CRYPEx_AESGCM_Decrypt_IT (CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData) |
Initializes the CRYP peripheral in AES GCM decryption mode using IT. | |
HAL_StatusTypeDef | HAL_CRYPEx_AESCCM_Decrypt_IT (CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData) |
Initializes the CRYP peripheral in AES CCM decryption mode using interrupt then decrypted pCypherData. | |
HAL_StatusTypeDef | HAL_CRYPEx_AESGCM_Encrypt_DMA (CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData) |
Initializes the CRYP peripheral in AES GCM encryption mode using DMA. | |
HAL_StatusTypeDef | HAL_CRYPEx_AESCCM_Encrypt_DMA (CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData) |
Initializes the CRYP peripheral in AES CCM encryption mode using interrupt. | |
HAL_StatusTypeDef | HAL_CRYPEx_AESGCM_Decrypt_DMA (CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData) |
Initializes the CRYP peripheral in AES GCM decryption mode using DMA. | |
HAL_StatusTypeDef | HAL_CRYPEx_AESCCM_Decrypt_DMA (CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData) |
Initializes the CRYP peripheral in AES CCM decryption mode using DMA then decrypted pCypherData. |
Extended processing functions.
============================================================================== ##### Extended AES processing functions ##### ============================================================================== [..] This section provides functions allowing to: (+) Encrypt plaintext using AES-128/192/256 using GCM and CCM chaining modes (+) Decrypt cyphertext using AES-128/192/256 using GCM and CCM chaining modes (+) Finish the processing. This function is available only for GCM and CCM [..] Three processing methods are available: (+) Polling mode (+) Interrupt mode (+) DMA mode
HAL_StatusTypeDef HAL_CRYPEx_AESCCM_Decrypt | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pCypherData, | ||
uint16_t | Size, | ||
uint8_t * | pPlainData, | ||
uint32_t | Timeout | ||
) |
Initializes the CRYP peripheral in AES CCM decryption mode then decrypted pCypherData.
The cypher data are available in pPlainData.
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 |
Timeout | Timeout duration |
HAL | status |
Definition at line 1152 of file stm32f4xx_hal_cryp_ex.c.
References CRYP_InitTypeDef::Header, CRYP_InitTypeDef::HeaderSize, and CRYP_HandleTypeDef::Init.
HAL_StatusTypeDef HAL_CRYPEx_AESCCM_Decrypt_DMA | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pCypherData, | ||
uint16_t | Size, | ||
uint8_t * | pPlainData | ||
) |
Initializes the CRYP peripheral in AES CCM decryption mode using DMA then decrypted pCypherData.
The cypher 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, must be a multiple of 16 |
pPlainData | Pointer to the plaintext buffer |
HAL | status |
Definition at line 2732 of file stm32f4xx_hal_cryp_ex.c.
References __HAL_CRYP_ENABLE, __HAL_CRYP_FIFO_FLUSH, __HAL_CRYP_SET_MODE, __HAL_CRYP_SET_PHASE, CRYP_CR_ALGOMODE_AES_CCM_DECRYPT, CRYP_FLAG_BUSY, CRYP_FLAG_IFEM, CRYP_PHASE_HEADER, CRYP_PHASE_INIT, CRYP_PHASE_PAYLOAD, CRYPEx_GCMCCM_SetDMAConfig(), CRYPEx_GCMCCM_SetInitVector(), CRYPEx_GCMCCM_SetKey(), CRYPEx_TIMEOUT_VALUE, CRYP_HandleTypeDef::CrypInCount, CRYP_HandleTypeDef::CrypOutCount, HAL_CRYP_PHASE_PROCESS, HAL_CRYP_PHASE_READY, HAL_CRYP_STATE_BUSY, HAL_CRYP_STATE_READY, HAL_CRYP_STATE_TIMEOUT, HAL_GetTick(), CRYP_InitTypeDef::Header, CRYP_InitTypeDef::HeaderSize, CRYP_HandleTypeDef::Init, CRYP_HandleTypeDef::Instance, CRYP_InitTypeDef::IVSize, CRYP_InitTypeDef::KeySize, CRYP_HandleTypeDef::pCrypInBuffPtr, CRYP_HandleTypeDef::pCrypOutBuffPtr, CRYP_HandleTypeDef::Phase, CRYP_InitTypeDef::pInitVect, CRYP_InitTypeDef::pKey, CRYP_InitTypeDef::pScratch, CRYP_HandleTypeDef::State, and CRYP_InitTypeDef::TagSize.
HAL_StatusTypeDef HAL_CRYPEx_AESCCM_Decrypt_IT | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pCypherData, | ||
uint16_t | Size, | ||
uint8_t * | pPlainData | ||
) |
Initializes the CRYP peripheral in AES CCM decryption mode using interrupt then decrypted pCypherData.
The cypher 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, must be a multiple of 16 |
pPlainData | Pointer to the plaintext buffer |
HAL | status |
Definition at line 2001 of file stm32f4xx_hal_cryp_ex.c.
References CRYP_InitTypeDef::Header, CRYP_InitTypeDef::HeaderSize, and CRYP_HandleTypeDef::Init.
Referenced by HAL_CRYPEx_GCMCCM_IRQHandler().
HAL_StatusTypeDef HAL_CRYPEx_AESCCM_Encrypt | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pPlainData, | ||
uint16_t | Size, | ||
uint8_t * | pCypherData, | ||
uint32_t | Timeout | ||
) |
Initializes the CRYP peripheral in AES CCM encryption mode then encrypt pPlainData.
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 |
Timeout | Timeout duration |
HAL | status |
Definition at line 504 of file stm32f4xx_hal_cryp_ex.c.
References CRYP_InitTypeDef::Header, CRYP_InitTypeDef::HeaderSize, and CRYP_HandleTypeDef::Init.
HAL_StatusTypeDef HAL_CRYPEx_AESCCM_Encrypt_DMA | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pPlainData, | ||
uint16_t | Size, | ||
uint8_t * | pCypherData | ||
) |
Initializes the CRYP peripheral in AES CCM encryption mode using interrupt.
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 2388 of file stm32f4xx_hal_cryp_ex.c.
References __HAL_CRYP_ENABLE, __HAL_CRYP_FIFO_FLUSH, __HAL_CRYP_SET_MODE, __HAL_CRYP_SET_PHASE, CRYP_CR_ALGOMODE_AES_CCM_ENCRYPT, CRYP_FLAG_BUSY, CRYP_FLAG_IFEM, CRYP_PHASE_HEADER, CRYP_PHASE_INIT, CRYP_PHASE_PAYLOAD, CRYPEx_GCMCCM_SetDMAConfig(), CRYPEx_GCMCCM_SetInitVector(), CRYPEx_GCMCCM_SetKey(), CRYPEx_TIMEOUT_VALUE, CRYP_HandleTypeDef::CrypInCount, CRYP_HandleTypeDef::CrypOutCount, HAL_CRYP_PHASE_PROCESS, HAL_CRYP_PHASE_READY, HAL_CRYP_STATE_BUSY, HAL_CRYP_STATE_READY, HAL_CRYP_STATE_TIMEOUT, HAL_GetTick(), CRYP_InitTypeDef::Header, CRYP_InitTypeDef::HeaderSize, CRYP_HandleTypeDef::Init, CRYP_HandleTypeDef::Instance, CRYP_InitTypeDef::IVSize, CRYP_InitTypeDef::KeySize, CRYP_HandleTypeDef::pCrypInBuffPtr, CRYP_HandleTypeDef::pCrypOutBuffPtr, CRYP_HandleTypeDef::Phase, CRYP_InitTypeDef::pInitVect, CRYP_InitTypeDef::pKey, CRYP_InitTypeDef::pScratch, CRYP_HandleTypeDef::State, and CRYP_InitTypeDef::TagSize.
HAL_StatusTypeDef HAL_CRYPEx_AESCCM_Encrypt_IT | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pPlainData, | ||
uint16_t | Size, | ||
uint8_t * | pCypherData | ||
) |
Initializes the CRYP peripheral in AES CCM encryption mode using interrupt.
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 1554 of file stm32f4xx_hal_cryp_ex.c.
References CRYP_InitTypeDef::Header, CRYP_InitTypeDef::HeaderSize, and CRYP_HandleTypeDef::Init.
Referenced by HAL_CRYPEx_GCMCCM_IRQHandler().
HAL_StatusTypeDef HAL_CRYPEx_AESCCM_Finish | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | AuthTag, | ||
uint32_t | Timeout | ||
) |
Computes the authentication TAG for AES CCM mode.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
AuthTag | Pointer to the authentication buffer |
Timeout | Timeout duration |
HAL | status |
Definition at line 1058 of file stm32f4xx_hal_cryp_ex.c.
References CRYP_HandleTypeDef::Init, and CRYP_InitTypeDef::pScratch.
HAL_StatusTypeDef HAL_CRYPEx_AESGCM_Decrypt | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pCypherData, | ||
uint16_t | Size, | ||
uint8_t * | pPlainData, | ||
uint32_t | Timeout | ||
) |
Initializes the CRYP peripheral in AES GCM decryption mode then decrypted pCypherData.
The cypher 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 cyphertext buffer, must be a multiple of 16 |
pPlainData | Pointer to the plaintext buffer |
Timeout | Timeout duration |
HAL | status |
Definition at line 858 of file stm32f4xx_hal_cryp_ex.c.
References __HAL_CRYP_DISABLE, __HAL_CRYP_ENABLE, __HAL_CRYP_FIFO_FLUSH, __HAL_CRYP_SET_MODE, __HAL_CRYP_SET_PHASE, CRYP_CR_ALGOMODE_AES_GCM_DECRYPT, CRYP_PHASE_PAYLOAD, CRYPEx_GCMCCM_ProcessData(), CRYPEx_GCMCCM_SetHeaderPhase(), CRYPEx_GCMCCM_SetInitVector(), CRYPEx_GCMCCM_SetKey(), HAL_CRYP_PHASE_PROCESS, HAL_CRYP_PHASE_READY, HAL_CRYP_STATE_BUSY, HAL_CRYP_STATE_READY, HAL_CRYP_STATE_TIMEOUT, HAL_GetTick(), CRYP_InitTypeDef::Header, CRYP_InitTypeDef::HeaderSize, CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeySize, CRYP_HandleTypeDef::Phase, CRYP_InitTypeDef::pInitVect, CRYP_InitTypeDef::pKey, and CRYP_HandleTypeDef::State.
HAL_StatusTypeDef HAL_CRYPEx_AESGCM_Decrypt_DMA | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pCypherData, | ||
uint16_t | Size, | ||
uint8_t * | pPlainData | ||
) |
Initializes the CRYP peripheral in AES GCM decryption mode using DMA.
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 cyphertext buffer, must be a multiple of 16 |
pPlainData | Pointer to the plaintext buffer |
HAL | status |
Definition at line 2642 of file stm32f4xx_hal_cryp_ex.c.
References __HAL_CRYP_DISABLE, __HAL_CRYP_ENABLE, __HAL_CRYP_SET_MODE, __HAL_CRYP_SET_PHASE, CRYP_CR_ALGOMODE_AES_GCM_DECRYPT, CRYP_PHASE_PAYLOAD, CRYPEx_GCMCCM_SetDMAConfig(), CRYPEx_GCMCCM_SetHeaderPhase(), CRYPEx_GCMCCM_SetInitVector(), CRYPEx_GCMCCM_SetKey(), CRYPEx_TIMEOUT_VALUE, HAL_CRYP_PHASE_PROCESS, HAL_CRYP_PHASE_READY, HAL_CRYP_STATE_BUSY, HAL_CRYP_STATE_READY, HAL_CRYP_STATE_TIMEOUT, HAL_GetTick(), CRYP_InitTypeDef::Header, CRYP_InitTypeDef::HeaderSize, CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeySize, CRYP_HandleTypeDef::Phase, CRYP_InitTypeDef::pInitVect, CRYP_InitTypeDef::pKey, and CRYP_HandleTypeDef::State.
HAL_StatusTypeDef HAL_CRYPEx_AESGCM_Decrypt_IT | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pCypherData, | ||
uint16_t | Size, | ||
uint8_t * | pPlainData | ||
) |
Initializes the CRYP peripheral in AES GCM decryption mode using IT.
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 cyphertext buffer, must be a multiple of 16 |
pPlainData | Pointer to the plaintext buffer |
HAL | status |
Definition at line 1853 of file stm32f4xx_hal_cryp_ex.c.
References __HAL_CRYP_DISABLE, __HAL_CRYP_DISABLE_IT, __HAL_CRYP_ENABLE, __HAL_CRYP_ENABLE_IT, __HAL_CRYP_FIFO_FLUSH, __HAL_CRYP_GET_IT, __HAL_CRYP_SET_MODE, __HAL_CRYP_SET_PHASE, CRYP_CR_ALGOMODE_AES_GCM_DECRYPT, CRYP_IT_INI, CRYP_IT_OUTI, CRYP_PHASE_PAYLOAD, CRYPEx_GCMCCM_SetHeaderPhase(), CRYPEx_GCMCCM_SetInitVector(), CRYPEx_GCMCCM_SetKey(), CRYPEx_TIMEOUT_VALUE, CRYP_HandleTypeDef::CrypInCount, CRYP_HandleTypeDef::CrypOutCount, HAL_CRYP_InCpltCallback(), HAL_CRYP_OutCpltCallback(), HAL_CRYP_PHASE_PROCESS, HAL_CRYP_PHASE_READY, HAL_CRYP_STATE_BUSY, HAL_CRYP_STATE_READY, HAL_CRYP_STATE_TIMEOUT, HAL_GetTick(), CRYP_InitTypeDef::Header, CRYP_InitTypeDef::HeaderSize, CRYP_HandleTypeDef::Init, CRYP_HandleTypeDef::Instance, CRYP_InitTypeDef::KeySize, CRYP_HandleTypeDef::pCrypInBuffPtr, CRYP_HandleTypeDef::pCrypOutBuffPtr, CRYP_HandleTypeDef::Phase, CRYP_InitTypeDef::pInitVect, CRYP_InitTypeDef::pKey, and CRYP_HandleTypeDef::State.
Referenced by HAL_CRYPEx_GCMCCM_IRQHandler().
HAL_StatusTypeDef HAL_CRYPEx_AESGCM_Encrypt | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pPlainData, | ||
uint16_t | Size, | ||
uint8_t * | pCypherData, | ||
uint32_t | Timeout | ||
) |
Initializes the CRYP peripheral in AES GCM encryption mode then encrypt pPlainData.
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 |
Timeout | Timeout duration |
HAL | status |
Definition at line 760 of file stm32f4xx_hal_cryp_ex.c.
References __HAL_CRYP_DISABLE, __HAL_CRYP_ENABLE, __HAL_CRYP_FIFO_FLUSH, __HAL_CRYP_SET_MODE, __HAL_CRYP_SET_PHASE, CRYP_CR_ALGOMODE_AES_GCM_ENCRYPT, CRYP_PHASE_PAYLOAD, CRYPEx_GCMCCM_ProcessData(), CRYPEx_GCMCCM_SetHeaderPhase(), CRYPEx_GCMCCM_SetInitVector(), CRYPEx_GCMCCM_SetKey(), HAL_CRYP_PHASE_PROCESS, HAL_CRYP_PHASE_READY, HAL_CRYP_STATE_BUSY, HAL_CRYP_STATE_READY, HAL_CRYP_STATE_TIMEOUT, HAL_GetTick(), CRYP_InitTypeDef::Header, CRYP_InitTypeDef::HeaderSize, CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeySize, CRYP_HandleTypeDef::Phase, CRYP_InitTypeDef::pInitVect, CRYP_InitTypeDef::pKey, and CRYP_HandleTypeDef::State.
HAL_StatusTypeDef HAL_CRYPEx_AESGCM_Encrypt_DMA | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pPlainData, | ||
uint16_t | Size, | ||
uint8_t * | pCypherData | ||
) |
Initializes the CRYP peripheral in AES GCM encryption mode using DMA.
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 2291 of file stm32f4xx_hal_cryp_ex.c.
References __HAL_CRYP_DISABLE, __HAL_CRYP_ENABLE, __HAL_CRYP_FIFO_FLUSH, __HAL_CRYP_SET_MODE, __HAL_CRYP_SET_PHASE, CRYP_CR_ALGOMODE_AES_GCM_ENCRYPT, CRYP_PHASE_PAYLOAD, CRYPEx_GCMCCM_SetDMAConfig(), CRYPEx_GCMCCM_SetHeaderPhase(), CRYPEx_GCMCCM_SetInitVector(), CRYPEx_GCMCCM_SetKey(), CRYPEx_TIMEOUT_VALUE, HAL_CRYP_PHASE_PROCESS, HAL_CRYP_PHASE_READY, HAL_CRYP_STATE_BUSY, HAL_CRYP_STATE_READY, HAL_CRYP_STATE_TIMEOUT, HAL_GetTick(), CRYP_InitTypeDef::Header, CRYP_InitTypeDef::HeaderSize, CRYP_HandleTypeDef::Init, CRYP_InitTypeDef::KeySize, CRYP_HandleTypeDef::Phase, CRYP_InitTypeDef::pInitVect, CRYP_InitTypeDef::pKey, and CRYP_HandleTypeDef::State.
HAL_StatusTypeDef HAL_CRYPEx_AESGCM_Encrypt_IT | ( | CRYP_HandleTypeDef * | hcryp, |
uint8_t * | pPlainData, | ||
uint16_t | Size, | ||
uint8_t * | pCypherData | ||
) |
Initializes the CRYP peripheral in AES GCM encryption mode using IT.
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 1403 of file stm32f4xx_hal_cryp_ex.c.
References __HAL_CRYP_DISABLE, __HAL_CRYP_DISABLE_IT, __HAL_CRYP_ENABLE, __HAL_CRYP_ENABLE_IT, __HAL_CRYP_FIFO_FLUSH, __HAL_CRYP_GET_IT, __HAL_CRYP_SET_MODE, __HAL_CRYP_SET_PHASE, CRYP_CR_ALGOMODE_AES_GCM_ENCRYPT, CRYP_IT_INI, CRYP_IT_OUTI, CRYP_PHASE_PAYLOAD, CRYPEx_GCMCCM_SetHeaderPhase(), CRYPEx_GCMCCM_SetInitVector(), CRYPEx_GCMCCM_SetKey(), CRYPEx_TIMEOUT_VALUE, CRYP_HandleTypeDef::CrypInCount, CRYP_HandleTypeDef::CrypOutCount, HAL_CRYP_InCpltCallback(), HAL_CRYP_OutCpltCallback(), HAL_CRYP_PHASE_PROCESS, HAL_CRYP_PHASE_READY, HAL_CRYP_STATE_BUSY, HAL_CRYP_STATE_READY, HAL_CRYP_STATE_TIMEOUT, HAL_GetTick(), CRYP_InitTypeDef::Header, CRYP_InitTypeDef::HeaderSize, CRYP_HandleTypeDef::Init, CRYP_HandleTypeDef::Instance, CRYP_InitTypeDef::KeySize, CRYP_HandleTypeDef::pCrypInBuffPtr, CRYP_HandleTypeDef::pCrypOutBuffPtr, CRYP_HandleTypeDef::Phase, CRYP_InitTypeDef::pInitVect, CRYP_InitTypeDef::pKey, and CRYP_HandleTypeDef::State.
Referenced by HAL_CRYPEx_GCMCCM_IRQHandler().
HAL_StatusTypeDef HAL_CRYPEx_AESGCM_Finish | ( | CRYP_HandleTypeDef * | hcryp, |
uint32_t | Size, | ||
uint8_t * | AuthTag, | ||
uint32_t | Timeout | ||
) |
Computes the authentication TAG.
hcryp | pointer to a CRYP_HandleTypeDef structure that contains the configuration information for CRYP module |
Size | Total length of the plain/cyphertext buffer |
AuthTag | Pointer to the authentication buffer |
Timeout | Timeout duration |
HAL | status |
Definition at line 950 of file stm32f4xx_hal_cryp_ex.c.
References __HAL_CRYP_DISABLE, __HAL_CRYP_ENABLE, __HAL_CRYP_SET_PHASE, CRYP_DATATYPE_16B, CRYP_DATATYPE_1B, CRYP_DATATYPE_32B, CRYP_DATATYPE_8B, CRYP_FLAG_OFNE, CRYP_PHASE_FINAL, CRYP_InitTypeDef::DataType, HAL_CRYP_PHASE_FINAL, HAL_CRYP_PHASE_PROCESS, HAL_CRYP_STATE_BUSY, HAL_CRYP_STATE_READY, HAL_CRYP_STATE_TIMEOUT, HAL_GetTick(), CRYP_InitTypeDef::HeaderSize, CRYP_HandleTypeDef::Init, CRYP_HandleTypeDef::Instance, CRYP_HandleTypeDef::Phase, and CRYP_HandleTypeDef::State.