Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

145 rader
3.3 KiB

  1. /**
  2. ******************************************************************************
  3. * @file stm32f4xx_hal_cryp_ex.h
  4. * @author MCD Application Team
  5. * @brief Header file of CRYP HAL Extension module.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under BSD 3-Clause license,
  13. * the "License"; You may not use this file except in compliance with the
  14. * License. You may obtain a copy of the License at:
  15. * opensource.org/licenses/BSD-3-Clause
  16. *
  17. ******************************************************************************
  18. */
  19. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef __STM32F4xx_HAL_CRYP_EX_H
  21. #define __STM32F4xx_HAL_CRYP_EX_H
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Includes ------------------------------------------------------------------*/
  26. #include "stm32f4xx_hal_def.h"
  27. /** @addtogroup STM32F4xx_HAL_Driver
  28. * @{
  29. */
  30. /** @addtogroup CRYPEx
  31. * @{
  32. */
  33. /* Exported types ------------------------------------------------------------*/
  34. /** @defgroup CRYPEx_Exported_Types CRYPEx Exported types
  35. * @{
  36. */
  37. /**
  38. * @}
  39. */
  40. /* Exported constants --------------------------------------------------------*/
  41. /** @defgroup CRYPEx_Exported_Constants CRYPEx Exported constants
  42. * @{
  43. */
  44. /**
  45. * @}
  46. */
  47. /* Private types -------------------------------------------------------------*/
  48. /** @defgroup CRYPEx_Private_Types CRYPEx Private Types
  49. * @{
  50. */
  51. /**
  52. * @}
  53. */
  54. /* Private variables ---------------------------------------------------------*/
  55. /** @defgroup CRYPEx_Private_Variables CRYPEx Private Variables
  56. * @{
  57. */
  58. /**
  59. * @}
  60. */
  61. /* Private constants ---------------------------------------------------------*/
  62. /** @defgroup CRYPEx_Private_Constants CRYPEx Private Constants
  63. * @{
  64. */
  65. /**
  66. * @}
  67. */
  68. /* Private macros ------------------------------------------------------------*/
  69. /** @defgroup CRYPEx_Private_Macros CRYPEx Private Macros
  70. * @{
  71. */
  72. /**
  73. * @}
  74. */
  75. /* Private functions ---------------------------------------------------------*/
  76. /** @defgroup CRYPEx_Private_Functions CRYPEx Private Functions
  77. * @{
  78. */
  79. /**
  80. * @}
  81. */
  82. /* Exported functions --------------------------------------------------------*/
  83. /** @defgroup CRYPEx_Exported_Functions CRYPEx Exported Functions
  84. * @{
  85. */
  86. #if defined (CRYP) || defined (AES)
  87. /** @addtogroup CRYPEx_Exported_Functions_Group1
  88. * @{
  89. */
  90. HAL_StatusTypeDef HAL_CRYPEx_AESGCM_GenerateAuthTAG(CRYP_HandleTypeDef *hcryp, uint32_t *AuthTag, uint32_t Timeout);
  91. HAL_StatusTypeDef HAL_CRYPEx_AESCCM_GenerateAuthTAG(CRYP_HandleTypeDef *hcryp, uint32_t *AuthTag, uint32_t Timeout);
  92. /**
  93. * @}
  94. */
  95. #endif /* CRYP||AES */
  96. #if defined (AES)
  97. /** @addtogroup CRYPEx_Exported_Functions_Group2
  98. * @{
  99. */
  100. void HAL_CRYPEx_EnableAutoKeyDerivation(CRYP_HandleTypeDef *hcryp);
  101. void HAL_CRYPEx_DisableAutoKeyDerivation(CRYP_HandleTypeDef *hcryp);
  102. /**
  103. * @}
  104. */
  105. #endif /* AES */
  106. /**
  107. * @}
  108. */
  109. /**
  110. * @}
  111. */
  112. /**
  113. * @}
  114. */
  115. #ifdef __cplusplus
  116. }
  117. #endif
  118. #endif /* __STM32F4xx_HAL_CRYP_EX_H */
  119. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/