123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- /**
- ******************************************************************************
- * @file stm32l4xx_hal_cryp_ex.h
- * @author MCD Application Team
- * @brief Header file of CRYPEx HAL module.
- ******************************************************************************
- * @attention
- *
- * Copyright (c) 2017 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.
- ******************************************************************************
- */
- /* Define to prevent recursive inclusion -------------------------------------*/
- #ifndef STM32L4xx_HAL_CRYP_EX_H
- #define STM32L4xx_HAL_CRYP_EX_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if defined(AES)
- /* Includes ------------------------------------------------------------------*/
- #include "stm32l4xx_hal_def.h"
- /** @addtogroup STM32L4xx_HAL_Driver
- * @{
- */
- /** @addtogroup CRYPEx
- * @{
- */
- /* Exported types ------------------------------------------------------------*/
- /* Exported constants --------------------------------------------------------*/
- /* Exported functions --------------------------------------------------------*/
- /** @addtogroup CRYPEx_Exported_Functions
- * @{
- */
- /** @addtogroup CRYPEx_Exported_Functions_Group1
- * @{
- */
- /* CallBack functions ********************************************************/
- void HAL_CRYPEx_ComputationCpltCallback(CRYP_HandleTypeDef *hcryp);
- /**
- * @}
- */
- /** @addtogroup CRYPEx_Exported_Functions_Group2
- * @{
- */
- /* AES encryption/decryption processing functions ****************************/
- HAL_StatusTypeDef HAL_CRYPEx_AES(CRYP_HandleTypeDef *hcryp, uint8_t *pInputData, uint16_t Size, uint8_t *pOutputData, uint32_t Timeout);
- HAL_StatusTypeDef HAL_CRYPEx_AES_IT(CRYP_HandleTypeDef *hcryp, uint8_t *pInputData, uint16_t Size, uint8_t *pOutputData);
- HAL_StatusTypeDef HAL_CRYPEx_AES_DMA(CRYP_HandleTypeDef *hcryp, uint8_t *pInputData, uint16_t Size, uint8_t *pOutputData);
- /* AES encryption/decryption/authentication processing functions *************/
- HAL_StatusTypeDef HAL_CRYPEx_AES_Auth(CRYP_HandleTypeDef *hcryp, uint8_t *pInputData, uint64_t Size, uint8_t *pOutputData, uint32_t Timeout);
- HAL_StatusTypeDef HAL_CRYPEx_AES_Auth_IT(CRYP_HandleTypeDef *hcryp, uint8_t *pInputData, uint64_t Size, uint8_t *pOutputData);
- HAL_StatusTypeDef HAL_CRYPEx_AES_Auth_DMA(CRYP_HandleTypeDef *hcryp, uint8_t *pInputData, uint64_t Size, uint8_t *pOutputData);
- /**
- * @}
- */
- /** @addtogroup CRYPEx_Exported_Functions_Group3
- * @{
- */
- /* AES suspension/resumption functions ***************************************/
- void HAL_CRYPEx_Read_IVRegisters(CRYP_HandleTypeDef *hcryp, uint8_t* Output);
- void HAL_CRYPEx_Write_IVRegisters(CRYP_HandleTypeDef *hcryp, uint8_t* Input);
- void HAL_CRYPEx_Read_SuspendRegisters(CRYP_HandleTypeDef *hcryp, uint8_t* Output);
- void HAL_CRYPEx_Write_SuspendRegisters(CRYP_HandleTypeDef *hcryp, uint8_t* Input);
- void HAL_CRYPEx_Read_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint8_t* Output, uint32_t KeySize);
- void HAL_CRYPEx_Write_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint8_t* Input, uint32_t KeySize);
- void HAL_CRYPEx_Read_ControlRegister(CRYP_HandleTypeDef *hcryp, uint8_t* Output);
- void HAL_CRYPEx_Write_ControlRegister(CRYP_HandleTypeDef *hcryp, uint8_t* Input);
- void HAL_CRYPEx_ProcessSuspend(CRYP_HandleTypeDef *hcryp);
- /**
- * @}
- */
- /**
- * @}
- */
- /* Private functions -----------------------------------------------------------*/
- /** @addtogroup CRYPEx_Private_Functions CRYPEx Private Functions
- * @{
- */
- HAL_StatusTypeDef CRYP_AES_Auth_IT(CRYP_HandleTypeDef *hcryp);
- /**
- * @}
- */
- /**
- * @}
- */
- /**
- * @}
- */
- #endif /* AES */
- #ifdef __cplusplus
- }
- #endif
- #endif /* STM32L4xx_HAL_CRYP_EX_H */
|