You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

557 lines
20 KiB

  1. /**
  2. ******************************************************************************
  3. * @file stm32h7xx_hal_cryp.h
  4. * @author MCD Application Team
  5. * @brief Header file of CRYP HAL module.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2017 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 STM32H7xx_HAL_CRYP_H
  21. #define STM32H7xx_HAL_CRYP_H
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Includes ------------------------------------------------------------------*/
  26. #include "stm32h7xx_hal_def.h"
  27. /** @addtogroup STM32H7xx_HAL_Driver
  28. * @{
  29. */
  30. #if defined (CRYP)
  31. /** @addtogroup CRYP
  32. * @{
  33. */
  34. /* Exported types ------------------------------------------------------------*/
  35. /** @defgroup CRYP_Exported_Types CRYP Exported Types
  36. * @{
  37. */
  38. /**
  39. * @brief CRYP Init Structure definition
  40. */
  41. typedef struct
  42. {
  43. uint32_t DataType; /*!< 32-bit data, 16-bit data, 8-bit data or 1-bit string.
  44. This parameter can be a value of @ref CRYP_Data_Type */
  45. uint32_t KeySize; /*!< Used only in AES mode : 128, 192 or 256 bit key length in CRYP1.
  46. This parameter can be a value of @ref CRYP_Key_Size */
  47. uint32_t *pKey; /*!< The key used for encryption/decryption */
  48. uint32_t *pInitVect; /*!< The initialization vector used also as initialization
  49. counter in CTR mode */
  50. uint32_t Algorithm; /*!< DES/ TDES Algorithm ECB/CBC
  51. AES Algorithm ECB/CBC/CTR/GCM or CCM
  52. This parameter can be a value of @ref CRYP_Algorithm_Mode */
  53. uint32_t *Header; /*!< used only in AES GCM and CCM Algorithm for authentication,
  54. GCM : also known as Additional Authentication Data
  55. CCM : named B1 composed of the associated data length and Associated Data. */
  56. uint32_t HeaderSize; /*!< The size of header buffer in word */
  57. uint32_t *B0; /*!< B0 is first authentication block used only in AES CCM mode */
  58. uint32_t DataWidthUnit; /*!< Data With Unit, this parameter can be value of @ref CRYP_Data_Width_Unit*/
  59. uint32_t KeyIVConfigSkip; /*!< CRYP peripheral Key and IV configuration skip, to config Key and Initialization
  60. Vector only once and to skip configuration for consecutive processings.
  61. This parameter can be a value of @ref CRYP_Configuration_Skip */
  62. } CRYP_ConfigTypeDef;
  63. /**
  64. * @brief CRYP State Structure definition
  65. */
  66. typedef enum
  67. {
  68. HAL_CRYP_STATE_RESET = 0x00U, /*!< CRYP not yet initialized or disabled */
  69. HAL_CRYP_STATE_READY = 0x01U, /*!< CRYP initialized and ready for use */
  70. HAL_CRYP_STATE_BUSY = 0x02U /*!< CRYP BUSY, internal processing is ongoing */
  71. } HAL_CRYP_STATETypeDef;
  72. /**
  73. * @brief CRYP handle Structure definition
  74. */
  75. #if (USE_HAL_CRYP_REGISTER_CALLBACKS == 1)
  76. typedef struct __CRYP_HandleTypeDef
  77. #else
  78. typedef struct
  79. #endif /* (USE_HAL_CRYP_REGISTER_CALLBACKS) */
  80. {
  81. CRYP_TypeDef *Instance; /*!< CRYP registers base address */
  82. CRYP_ConfigTypeDef Init; /*!< CRYP required parameters */
  83. uint32_t *pCrypInBuffPtr; /*!< Pointer to CRYP processing (encryption, decryption,...) buffer */
  84. uint32_t *pCrypOutBuffPtr; /*!< Pointer to CRYP processing (encryption, decryption,...) buffer */
  85. __IO uint16_t CrypHeaderCount; /*!< Counter of header data */
  86. __IO uint16_t CrypInCount; /*!< Counter of input data */
  87. __IO uint16_t CrypOutCount; /*!< Counter of output data */
  88. uint16_t Size; /*!< length of input data in word */
  89. uint32_t Phase; /*!< CRYP peripheral phase */
  90. DMA_HandleTypeDef *hdmain; /*!< CRYP In DMA handle parameters */
  91. DMA_HandleTypeDef *hdmaout; /*!< CRYP Out DMA handle parameters */
  92. HAL_LockTypeDef Lock; /*!< CRYP locking object */
  93. __IO HAL_CRYP_STATETypeDef State; /*!< CRYP peripheral state */
  94. __IO uint32_t ErrorCode; /*!< CRYP peripheral error code */
  95. uint32_t Version; /*!< CRYP1 IP version*/
  96. uint32_t KeyIVConfig; /*!< CRYP peripheral Key and IV configuration flag, used when
  97. configuration can be skipped */
  98. uint32_t SizesSum; /*!< Sum of successive payloads lengths (in bytes), stored
  99. for a single signature computation after several
  100. messages processing */
  101. #if (USE_HAL_CRYP_REGISTER_CALLBACKS == 1)
  102. void (*InCpltCallback)(struct __CRYP_HandleTypeDef *hcryp); /*!< CRYP Input FIFO transfer completed callback */
  103. void (*OutCpltCallback)(struct __CRYP_HandleTypeDef *hcryp); /*!< CRYP Output FIFO transfer completed callback */
  104. void (*ErrorCallback)(struct __CRYP_HandleTypeDef *hcryp); /*!< CRYP Error callback */
  105. void (* MspInitCallback)(struct __CRYP_HandleTypeDef *hcryp); /*!< CRYP Msp Init callback */
  106. void (* MspDeInitCallback)(struct __CRYP_HandleTypeDef *hcryp); /*!< CRYP Msp DeInit callback */
  107. #endif /* (USE_HAL_CRYP_REGISTER_CALLBACKS) */
  108. } CRYP_HandleTypeDef;
  109. /**
  110. * @}
  111. */
  112. #if (USE_HAL_CRYP_REGISTER_CALLBACKS == 1)
  113. /** @defgroup HAL_CRYP_Callback_ID_enumeration_definition HAL CRYP Callback ID enumeration definition
  114. * @brief HAL CRYP Callback ID enumeration definition
  115. * @{
  116. */
  117. typedef enum
  118. {
  119. HAL_CRYP_INPUT_COMPLETE_CB_ID = 0x01U, /*!< CRYP Input FIFO transfer completed callback ID */
  120. HAL_CRYP_OUTPUT_COMPLETE_CB_ID = 0x02U, /*!< CRYP Output FIFO transfer completed callback ID */
  121. HAL_CRYP_ERROR_CB_ID = 0x03U, /*!< CRYP Error callback ID */
  122. HAL_CRYP_MSPINIT_CB_ID = 0x04U, /*!< CRYP MspInit callback ID */
  123. HAL_CRYP_MSPDEINIT_CB_ID = 0x05U /*!< CRYP MspDeInit callback ID */
  124. } HAL_CRYP_CallbackIDTypeDef;
  125. /**
  126. * @}
  127. */
  128. /** @defgroup HAL_CRYP_Callback_pointer_definition HAL CRYP Callback pointer definition
  129. * @brief HAL CRYP Callback pointer definition
  130. * @{
  131. */
  132. typedef void (*pCRYP_CallbackTypeDef)(CRYP_HandleTypeDef *hcryp); /*!< pointer to a common CRYP callback function */
  133. /**
  134. * @}
  135. */
  136. #endif /* USE_HAL_CRYP_REGISTER_CALLBACKS */
  137. /* Exported constants --------------------------------------------------------*/
  138. /** @defgroup CRYP_Exported_Constants CRYP Exported Constants
  139. * @{
  140. */
  141. /** @defgroup CRYP_Error_Definition CRYP Error Definition
  142. * @{
  143. */
  144. #define HAL_CRYP_ERROR_NONE 0x00000000U /*!< No error */
  145. #define HAL_CRYP_ERROR_WRITE 0x00000001U /*!< Write error */
  146. #define HAL_CRYP_ERROR_READ 0x00000002U /*!< Read error */
  147. #define HAL_CRYP_ERROR_DMA 0x00000004U /*!< DMA error */
  148. #define HAL_CRYP_ERROR_BUSY 0x00000008U /*!< Busy flag error */
  149. #define HAL_CRYP_ERROR_TIMEOUT 0x00000010U /*!< Timeout error */
  150. #define HAL_CRYP_ERROR_NOT_SUPPORTED 0x00000020U /*!< Not supported mode */
  151. #define HAL_CRYP_ERROR_AUTH_TAG_SEQUENCE 0x00000040U /*!< Sequence are not respected only for GCM or CCM */
  152. #if (USE_HAL_CRYP_REGISTER_CALLBACKS == 1)
  153. #define HAL_CRYP_ERROR_INVALID_CALLBACK ((uint32_t)0x00000080U) /*!< Invalid Callback error */
  154. #endif /* USE_HAL_CRYP_REGISTER_CALLBACKS */
  155. /**
  156. * @}
  157. */
  158. /** @defgroup CRYP_Data_Width_Unit CRYP Data Width Unit
  159. * @{
  160. */
  161. #define CRYP_DATAWIDTHUNIT_WORD 0x00000000U /*!< By default, size unit is word */
  162. #define CRYP_DATAWIDTHUNIT_BYTE 0x00000001U /*!< By default, size unit is word */
  163. /**
  164. * @}
  165. */
  166. /** @defgroup CRYP_Algorithm_Mode CRYP Algorithm Mode
  167. * @{
  168. */
  169. #define CRYP_DES_ECB CRYP_CR_ALGOMODE_DES_ECB
  170. #define CRYP_DES_CBC CRYP_CR_ALGOMODE_DES_CBC
  171. #define CRYP_TDES_ECB CRYP_CR_ALGOMODE_TDES_ECB
  172. #define CRYP_TDES_CBC CRYP_CR_ALGOMODE_TDES_CBC
  173. #define CRYP_AES_ECB CRYP_CR_ALGOMODE_AES_ECB
  174. #define CRYP_AES_CBC CRYP_CR_ALGOMODE_AES_CBC
  175. #define CRYP_AES_CTR CRYP_CR_ALGOMODE_AES_CTR
  176. #define CRYP_AES_GCM CRYP_CR_ALGOMODE_AES_GCM
  177. #define CRYP_AES_CCM CRYP_CR_ALGOMODE_AES_CCM
  178. /**
  179. * @}
  180. */
  181. /** @defgroup CRYP_Key_Size CRYP Key Size
  182. * @{
  183. */
  184. #define CRYP_KEYSIZE_128B 0x00000000U
  185. #define CRYP_KEYSIZE_192B CRYP_CR_KEYSIZE_0
  186. #define CRYP_KEYSIZE_256B CRYP_CR_KEYSIZE_1
  187. /**
  188. * @}
  189. */
  190. /** @defgroup CRYP_Data_Type CRYP Data Type
  191. * @{
  192. */
  193. #define CRYP_DATATYPE_32B 0x00000000U
  194. #define CRYP_DATATYPE_16B CRYP_CR_DATATYPE_0
  195. #define CRYP_DATATYPE_8B CRYP_CR_DATATYPE_1
  196. #define CRYP_DATATYPE_1B CRYP_CR_DATATYPE
  197. /**
  198. * @}
  199. */
  200. /** @defgroup CRYP_Interrupt CRYP Interrupt
  201. * @{
  202. */
  203. #define CRYP_IT_INI CRYP_IMSCR_INIM /*!< Input FIFO Interrupt */
  204. #define CRYP_IT_OUTI CRYP_IMSCR_OUTIM /*!< Output FIFO Interrupt */
  205. /**
  206. * @}
  207. */
  208. /** @defgroup CRYP_Flags CRYP Flags
  209. * @{
  210. */
  211. /* Flags in the SR register */
  212. #define CRYP_FLAG_IFEM CRYP_SR_IFEM /*!< Input FIFO is empty */
  213. #define CRYP_FLAG_IFNF CRYP_SR_IFNF /*!< Input FIFO is not Full */
  214. #define CRYP_FLAG_OFNE CRYP_SR_OFNE /*!< Output FIFO is not empty */
  215. #define CRYP_FLAG_OFFU CRYP_SR_OFFU /*!< Output FIFO is Full */
  216. #define CRYP_FLAG_BUSY CRYP_SR_BUSY /*!< The CRYP core is currently processing a block of data
  217. or a key preparation (for AES decryption). */
  218. /* Flags in the RISR register */
  219. #define CRYP_FLAG_OUTRIS 0x01000002U /*!< Output FIFO service raw interrupt status */
  220. #define CRYP_FLAG_INRIS 0x01000001U /*!< Input FIFO service raw interrupt status*/
  221. /**
  222. * @}
  223. */
  224. /** @defgroup CRYP_Configuration_Skip CRYP Key and IV Configuration Skip Mode
  225. * @{
  226. */
  227. #define CRYP_KEYIVCONFIG_ALWAYS 0x00000000U /*!< Peripheral Key and IV configuration to do systematically */
  228. #define CRYP_KEYIVCONFIG_ONCE 0x00000001U /*!< Peripheral Key and IV configuration to do only once */
  229. /**
  230. * @}
  231. */
  232. /**
  233. * @}
  234. */
  235. /* Exported macros -----------------------------------------------------------*/
  236. /** @defgroup CRYP_Exported_Macros CRYP Exported Macros
  237. * @{
  238. */
  239. /** @brief Reset CRYP handle state
  240. * @param __HANDLE__ specifies the CRYP handle.
  241. * @retval None
  242. */
  243. #if (USE_HAL_CRYP_REGISTER_CALLBACKS == 1)
  244. #define __HAL_CRYP_RESET_HANDLE_STATE(__HANDLE__) do{\
  245. (__HANDLE__)->State = HAL_CRYP_STATE_RESET;\
  246. (__HANDLE__)->MspInitCallback = NULL;\
  247. (__HANDLE__)->MspDeInitCallback = NULL;\
  248. }while(0)
  249. #else
  250. #define __HAL_CRYP_RESET_HANDLE_STATE(__HANDLE__) ( (__HANDLE__)->State = HAL_CRYP_STATE_RESET)
  251. #endif /* USE_HAL_CRYP_REGISTER_CALLBACKS */
  252. /**
  253. * @brief Enable/Disable the CRYP peripheral.
  254. * @param __HANDLE__: specifies the CRYP handle.
  255. * @retval None
  256. */
  257. #define __HAL_CRYP_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= CRYP_CR_CRYPEN)
  258. #define __HAL_CRYP_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~CRYP_CR_CRYPEN)
  259. /** @brief Check whether the specified CRYP status flag is set or not.
  260. * @param __FLAG__: specifies the flag to check.
  261. * This parameter can be one of the following values for CRYP:
  262. * @arg CRYP_FLAG_BUSY: The CRYP core is currently processing a block of data
  263. * or a key preparation (for AES decryption).
  264. * @arg CRYP_FLAG_IFEM: Input FIFO is empty
  265. * @arg CRYP_FLAG_IFNF: Input FIFO is not full
  266. * @arg CRYP_FLAG_INRIS: Input FIFO service raw interrupt is pending
  267. * @arg CRYP_FLAG_OFNE: Output FIFO is not empty
  268. * @arg CRYP_FLAG_OFFU: Output FIFO is full
  269. * @arg CRYP_FLAG_OUTRIS: Input FIFO service raw interrupt is pending
  270. * @retval The state of __FLAG__ (TRUE or FALSE).
  271. */
  272. #define CRYP_FLAG_MASK 0x0000001FU
  273. #define __HAL_CRYP_GET_FLAG(__HANDLE__, __FLAG__) ((((uint8_t)((__FLAG__) >> 24)) == 0x01U)?((((__HANDLE__)->Instance->RISR) & ((__FLAG__) & CRYP_FLAG_MASK)) == ((__FLAG__) & CRYP_FLAG_MASK)): \
  274. ((((__HANDLE__)->Instance->RISR) & ((__FLAG__) & CRYP_FLAG_MASK)) == ((__FLAG__) & CRYP_FLAG_MASK)))
  275. /** @brief Check whether the specified CRYP interrupt is set or not.
  276. * @param __HANDLE__: specifies the CRYP handle.
  277. * @param __INTERRUPT__: specifies the interrupt to check.
  278. * This parameter can be one of the following values for CRYP:
  279. * @arg CRYP_IT_INI: Input FIFO service masked interrupt status
  280. * @arg CRYP_IT_OUTI: Output FIFO service masked interrupt status
  281. * @retval The state of __INTERRUPT__ (TRUE or FALSE).
  282. */
  283. #define __HAL_CRYP_GET_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->MISR & (__INTERRUPT__)) == (__INTERRUPT__))
  284. /**
  285. * @brief Enable the CRYP interrupt.
  286. * @param __HANDLE__: specifies the CRYP handle.
  287. * @param __INTERRUPT__: CRYP Interrupt.
  288. * This parameter can be one of the following values for CRYP:
  289. * @ CRYP_IT_INI : Input FIFO service interrupt mask.
  290. * @ CRYP_IT_OUTI : Output FIFO service interrupt mask.CRYP interrupt.
  291. * @retval None
  292. */
  293. #define __HAL_CRYP_ENABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->IMSCR) |= (__INTERRUPT__))
  294. /**
  295. * @brief Disable the CRYP interrupt.
  296. * @param __HANDLE__: specifies the CRYP handle.
  297. * @param __INTERRUPT__: CRYP Interrupt.
  298. * This parameter can be one of the following values for CRYP:
  299. * @ CRYP_IT_INI : Input FIFO service interrupt mask.
  300. * @ CRYP_IT_OUTI : Output FIFO service interrupt mask.CRYP interrupt.
  301. * @retval None
  302. */
  303. #define __HAL_CRYP_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->IMSCR) &= ~(__INTERRUPT__))
  304. /**
  305. * @}
  306. */
  307. /* Include CRYP HAL Extended module */
  308. #include "stm32h7xx_hal_cryp_ex.h"
  309. /* Exported functions --------------------------------------------------------*/
  310. /** @defgroup CRYP_Exported_Functions CRYP Exported Functions
  311. * @{
  312. */
  313. /** @addtogroup CRYP_Exported_Functions_Group1
  314. * @{
  315. */
  316. HAL_StatusTypeDef HAL_CRYP_Init(CRYP_HandleTypeDef *hcryp);
  317. HAL_StatusTypeDef HAL_CRYP_DeInit(CRYP_HandleTypeDef *hcryp);
  318. void HAL_CRYP_MspInit(CRYP_HandleTypeDef *hcryp);
  319. void HAL_CRYP_MspDeInit(CRYP_HandleTypeDef *hcryp);
  320. HAL_StatusTypeDef HAL_CRYP_SetConfig(CRYP_HandleTypeDef *hcryp, CRYP_ConfigTypeDef *pConf);
  321. HAL_StatusTypeDef HAL_CRYP_GetConfig(CRYP_HandleTypeDef *hcryp, CRYP_ConfigTypeDef *pConf);
  322. #if (USE_HAL_CRYP_REGISTER_CALLBACKS == 1)
  323. HAL_StatusTypeDef HAL_CRYP_RegisterCallback(CRYP_HandleTypeDef *hcryp, HAL_CRYP_CallbackIDTypeDef CallbackID,
  324. pCRYP_CallbackTypeDef pCallback);
  325. HAL_StatusTypeDef HAL_CRYP_UnRegisterCallback(CRYP_HandleTypeDef *hcryp, HAL_CRYP_CallbackIDTypeDef CallbackID);
  326. #endif /* USE_HAL_CRYP_REGISTER_CALLBACKS */
  327. /**
  328. * @}
  329. */
  330. /** @addtogroup CRYP_Exported_Functions_Group2
  331. * @{
  332. */
  333. /* encryption/decryption ***********************************/
  334. HAL_StatusTypeDef HAL_CRYP_Encrypt(CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint16_t Size, uint32_t *Output,
  335. uint32_t Timeout);
  336. HAL_StatusTypeDef HAL_CRYP_Decrypt(CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint16_t Size, uint32_t *Output,
  337. uint32_t Timeout);
  338. HAL_StatusTypeDef HAL_CRYP_Encrypt_IT(CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint16_t Size, uint32_t *Output);
  339. HAL_StatusTypeDef HAL_CRYP_Decrypt_IT(CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint16_t Size, uint32_t *Output);
  340. HAL_StatusTypeDef HAL_CRYP_Encrypt_DMA(CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint16_t Size, uint32_t *Output);
  341. HAL_StatusTypeDef HAL_CRYP_Decrypt_DMA(CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint16_t Size, uint32_t *Output);
  342. /**
  343. * @}
  344. */
  345. /** @addtogroup CRYP_Exported_Functions_Group3
  346. * @{
  347. */
  348. /* Interrupt Handler functions **********************************************/
  349. void HAL_CRYP_IRQHandler(CRYP_HandleTypeDef *hcryp);
  350. HAL_CRYP_STATETypeDef HAL_CRYP_GetState(CRYP_HandleTypeDef *hcryp);
  351. void HAL_CRYP_InCpltCallback(CRYP_HandleTypeDef *hcryp);
  352. void HAL_CRYP_OutCpltCallback(CRYP_HandleTypeDef *hcryp);
  353. void HAL_CRYP_ErrorCallback(CRYP_HandleTypeDef *hcryp);
  354. uint32_t HAL_CRYP_GetError(CRYP_HandleTypeDef *hcryp);
  355. /**
  356. * @}
  357. */
  358. /**
  359. * @}
  360. */
  361. /* Private macros --------------------------------------------------------*/
  362. /** @defgroup CRYP_Private_Macros CRYP Private Macros
  363. * @{
  364. */
  365. /** @defgroup CRYP_IS_CRYP_Definitions CRYP Private macros to check input parameters
  366. * @{
  367. */
  368. #define IS_CRYP_ALGORITHM(ALGORITHM) (((ALGORITHM) == CRYP_DES_ECB) || \
  369. ((ALGORITHM) == CRYP_DES_CBC) || \
  370. ((ALGORITHM) == CRYP_TDES_ECB) || \
  371. ((ALGORITHM) == CRYP_TDES_CBC) || \
  372. ((ALGORITHM) == CRYP_AES_ECB) || \
  373. ((ALGORITHM) == CRYP_AES_CBC) || \
  374. ((ALGORITHM) == CRYP_AES_CTR) || \
  375. ((ALGORITHM) == CRYP_AES_GCM) || \
  376. ((ALGORITHM) == CRYP_AES_CCM))
  377. #define IS_CRYP_KEYSIZE(KEYSIZE)(((KEYSIZE) == CRYP_KEYSIZE_128B) || \
  378. ((KEYSIZE) == CRYP_KEYSIZE_192B) || \
  379. ((KEYSIZE) == CRYP_KEYSIZE_256B))
  380. #define IS_CRYP_DATATYPE(DATATYPE)(((DATATYPE) == CRYP_DATATYPE_32B) || \
  381. ((DATATYPE) == CRYP_DATATYPE_16B) || \
  382. ((DATATYPE) == CRYP_DATATYPE_8B) || \
  383. ((DATATYPE) == CRYP_DATATYPE_1B))
  384. #define IS_CRYP_INIT(CONFIG)(((CONFIG) == CRYP_KEYIVCONFIG_ALWAYS) || \
  385. ((CONFIG) == CRYP_KEYIVCONFIG_ONCE))
  386. /**
  387. * @}
  388. */
  389. /**
  390. * @}
  391. */
  392. /* Private constants ---------------------------------------------------------*/
  393. /** @defgroup CRYP_Private_Constants CRYP Private Constants
  394. * @{
  395. */
  396. /**
  397. * @}
  398. */
  399. /* Private defines -----------------------------------------------------------*/
  400. /** @defgroup CRYP_Private_Defines CRYP Private Defines
  401. * @{
  402. */
  403. /**
  404. * @}
  405. */
  406. /* Private variables ---------------------------------------------------------*/
  407. /** @defgroup CRYP_Private_Variables CRYP Private Variables
  408. * @{
  409. */
  410. /**
  411. * @}
  412. */
  413. /* Private functions prototypes ----------------------------------------------*/
  414. /** @defgroup CRYP_Private_Functions_Prototypes CRYP Private Functions Prototypes
  415. * @{
  416. */
  417. /**
  418. * @}
  419. */
  420. /* Private functions ---------------------------------------------------------*/
  421. /** @defgroup CRYP_Private_Functions CRYP Private Functions
  422. * @{
  423. */
  424. /**
  425. * @}
  426. */
  427. /**
  428. * @}
  429. */
  430. #endif /* CRYP */
  431. /**
  432. * @}
  433. */
  434. #ifdef __cplusplus
  435. }
  436. #endif
  437. #endif /* STM32H7xx_HAL_CRYP_H */
  438. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/