xref: /btstack/port/stm32-f4discovery-usb/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cryp_ex.h (revision a8f7f3fcbcd51f8d2e92aca076b6a9f812db358c)
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 
20 /* Define to prevent recursive inclusion -------------------------------------*/
21 #ifndef __STM32F4xx_HAL_CRYP_EX_H
22 #define __STM32F4xx_HAL_CRYP_EX_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 /* Includes ------------------------------------------------------------------*/
29 #include "stm32f4xx_hal_def.h"
30 
31 /** @addtogroup STM32F4xx_HAL_Driver
32   * @{
33   */
34 
35 /** @addtogroup CRYPEx
36   * @{
37   */
38 /* Exported types ------------------------------------------------------------*/
39 /** @defgroup CRYPEx_Exported_Types CRYPEx Exported types
40   * @{
41   */
42 
43 /**
44   * @}
45   */
46 /* Exported constants --------------------------------------------------------*/
47 /** @defgroup CRYPEx_Exported_Constants CRYPEx Exported constants
48   * @{
49   */
50 
51 /**
52   * @}
53   */
54 
55 /* Private types -------------------------------------------------------------*/
56 /** @defgroup CRYPEx_Private_Types CRYPEx Private Types
57   * @{
58   */
59 
60 /**
61   * @}
62   */
63 
64 /* Private variables ---------------------------------------------------------*/
65 /** @defgroup CRYPEx_Private_Variables CRYPEx Private Variables
66   * @{
67   */
68 
69 /**
70   * @}
71   */
72 
73 /* Private constants ---------------------------------------------------------*/
74 /** @defgroup CRYPEx_Private_Constants CRYPEx Private Constants
75   * @{
76   */
77 
78 /**
79   * @}
80   */
81 
82 /* Private macros ------------------------------------------------------------*/
83 /** @defgroup CRYPEx_Private_Macros CRYPEx Private Macros
84   * @{
85   */
86 
87 /**
88   * @}
89  */
90 
91 /* Private functions ---------------------------------------------------------*/
92 /** @defgroup CRYPEx_Private_Functions CRYPEx Private Functions
93   * @{
94   */
95 
96 /**
97   * @}
98   */
99 
100 /* Exported functions --------------------------------------------------------*/
101 /** @defgroup CRYPEx_Exported_Functions CRYPEx Exported Functions
102   * @{
103   */
104 #if defined (CRYP) || defined (AES)
105 /** @addtogroup CRYPEx_Exported_Functions_Group1
106   * @{
107   */
108 HAL_StatusTypeDef HAL_CRYPEx_AESGCM_GenerateAuthTAG(CRYP_HandleTypeDef *hcryp, uint32_t *AuthTag, uint32_t Timeout);
109 HAL_StatusTypeDef HAL_CRYPEx_AESCCM_GenerateAuthTAG(CRYP_HandleTypeDef *hcryp, uint32_t *AuthTag, uint32_t Timeout);
110 /**
111   * @}
112   */
113 #endif /* CRYP||AES */
114 
115 #if defined (AES)
116 /** @addtogroup CRYPEx_Exported_Functions_Group2
117   * @{
118   */
119 void  HAL_CRYPEx_EnableAutoKeyDerivation(CRYP_HandleTypeDef *hcryp);
120 void  HAL_CRYPEx_DisableAutoKeyDerivation(CRYP_HandleTypeDef *hcryp);
121 /**
122   * @}
123   */
124 #endif /* AES */
125 
126 /**
127   * @}
128   */
129 
130 /**
131   * @}
132   */
133 
134 /**
135   * @}
136   */
137 
138 #ifdef __cplusplus
139 }
140 #endif
141 
142 #endif /* __STM32F4xx_HAL_CRYP_EX_H */
143 
144 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
145