stm32g0xx_hal_cryp_ex.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /**
  2. ******************************************************************************
  3. * @file stm32g0xx_hal_cryp_ex.h
  4. * @author MCD Application Team
  5. * @brief Header file of CRYPEx HAL module.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * Copyright (c) 2018 STMicroelectronics.
  10. * All rights reserved.
  11. *
  12. * This software is licensed under terms that can be found in the LICENSE file
  13. * in the root directory of this software component.
  14. * If no LICENSE file comes with this software, it is provided AS-IS.
  15. *
  16. ******************************************************************************
  17. */
  18. /* Define to prevent recursive inclusion -------------------------------------*/
  19. #ifndef STM32G0xx_HAL_CRYP_EX_H
  20. #define STM32G0xx_HAL_CRYP_EX_H
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. /* Includes ------------------------------------------------------------------*/
  25. #include "stm32g0xx_hal_def.h"
  26. /** @addtogroup STM32G0xx_HAL_Driver
  27. * @{
  28. */
  29. #if defined(AES)
  30. /** @defgroup CRYPEx CRYPEx
  31. * @brief CRYP Extension HAL module driver.
  32. * @{
  33. */
  34. /* Exported types ------------------------------------------------------------*/
  35. /* Exported constants --------------------------------------------------------*/
  36. /* Private types -------------------------------------------------------------*/
  37. /** @defgroup CRYPEx_Private_Types CRYPEx Private Types
  38. * @{
  39. */
  40. /**
  41. * @}
  42. */
  43. /* Private variables ---------------------------------------------------------*/
  44. /** @defgroup CRYPEx_Private_Variables CRYPEx Private Variables
  45. * @{
  46. */
  47. /**
  48. * @}
  49. */
  50. /* Private constants ---------------------------------------------------------*/
  51. /** @defgroup CRYPEx_Private_Constants CRYPEx Private Constants
  52. * @{
  53. */
  54. /**
  55. * @}
  56. */
  57. /* Private macros ------------------------------------------------------------*/
  58. /** @defgroup CRYPEx_Private_Macros CRYPEx Private Macros
  59. * @{
  60. */
  61. /**
  62. * @}
  63. */
  64. /* Private functions ---------------------------------------------------------*/
  65. /** @defgroup CRYPEx_Private_Functions CRYPEx Private Functions
  66. * @{
  67. */
  68. /**
  69. * @}
  70. */
  71. /* Exported functions --------------------------------------------------------*/
  72. /** @defgroup CRYPEx_Exported_Functions CRYPEx Exported Functions
  73. * @{
  74. */
  75. /** @addtogroup CRYPEx_Exported_Functions_Group1
  76. * @{
  77. */
  78. HAL_StatusTypeDef HAL_CRYPEx_AESGCM_GenerateAuthTAG(CRYP_HandleTypeDef *hcryp, uint32_t *AuthTag, uint32_t Timeout);
  79. HAL_StatusTypeDef HAL_CRYPEx_AESCCM_GenerateAuthTAG(CRYP_HandleTypeDef *hcryp, uint32_t *AuthTag, uint32_t Timeout);
  80. /**
  81. * @}
  82. */
  83. /** @addtogroup CRYPEx_Exported_Functions_Group2
  84. * @{
  85. */
  86. void HAL_CRYPEx_EnableAutoKeyDerivation(CRYP_HandleTypeDef *hcryp);
  87. void HAL_CRYPEx_DisableAutoKeyDerivation(CRYP_HandleTypeDef *hcryp);
  88. /**
  89. * @}
  90. */
  91. /**
  92. * @}
  93. */
  94. /**
  95. * @}
  96. */
  97. #endif /* AES */
  98. /**
  99. * @}
  100. */
  101. #ifdef __cplusplus
  102. }
  103. #endif
  104. #endif /* STM32G0xx_HAL_CRYP_EX_H */