comparison Common/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_hash_ex.h @ 128:c78bcbd5deda FlipDisplay

Added current STM32 standandard libraries in version independend folder structure
author Ideenmodellierer
date Sun, 17 Feb 2019 21:12:22 +0100
parents
children
comparison
equal deleted inserted replaced
127:1369f8660eaa 128:c78bcbd5deda
1 /**
2 ******************************************************************************
3 * @file stm32f4xx_hal_hash_ex.h
4 * @author MCD Application Team
5 * @brief Header file of HASH HAL Extension module.
6 ******************************************************************************
7 * @attention
8 *
9 * <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
10 *
11 * Redistribution and use in source and binary forms, with or without modification,
12 * are permitted provided that the following conditions are met:
13 * 1. Redistributions of source code must retain the above copyright notice,
14 * this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright notice,
16 * this list of conditions and the following disclaimer in the documentation
17 * and/or other materials provided with the distribution.
18 * 3. Neither the name of STMicroelectronics nor the names of its contributors
19 * may be used to endorse or promote products derived from this software
20 * without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33 ******************************************************************************
34 */
35
36 /* Define to prevent recursive inclusion -------------------------------------*/
37 #ifndef __STM32F4xx_HAL_HASH_EX_H
38 #define __STM32F4xx_HAL_HASH_EX_H
39
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43
44 #if defined(STM32F437xx) || defined(STM32F439xx) || defined(STM32F479xx)
45 /* Includes ------------------------------------------------------------------*/
46 #include "stm32f4xx_hal_def.h"
47
48 /** @addtogroup STM32F4xx_HAL_Driver
49 * @{
50 */
51
52 /** @addtogroup HASHEx
53 * @brief HASHEx HAL Extension module driver
54 * @{
55 */
56
57 /* Exported types ------------------------------------------------------------*/
58 /* Exported constants --------------------------------------------------------*/
59 /* Exported macro ------------------------------------------------------------*/
60 /* Exported functions --------------------------------------------------------*/
61
62 /** @defgroup HASHEx_Exported_Functions HASHEx Exported Functions
63 * @{
64 */
65
66 /** @defgroup HASHEx_Exported_Functions_Group1 HASHEx processing using polling functions
67 * @{
68 */
69
70 HAL_StatusTypeDef HAL_HASHEx_SHA224_Start(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffer, uint32_t Timeout);
71 HAL_StatusTypeDef HAL_HASHEx_SHA256_Start(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffer, uint32_t Timeout);
72 HAL_StatusTypeDef HAL_HASHEx_SHA224_Accumulate(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);
73 HAL_StatusTypeDef HAL_HASHEx_SHA256_Accumulate(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);
74
75 /**
76 * @}
77 */
78
79 /** @defgroup HASHEx_Exported_Functions_Group2 HMAC processing using polling functions
80 * @{
81 */
82
83 HAL_StatusTypeDef HAL_HMACEx_SHA224_Start(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffer, uint32_t Timeout);
84 HAL_StatusTypeDef HAL_HMACEx_SHA256_Start(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffer, uint32_t Timeout);
85
86 /**
87 * @}
88 */
89
90 /** @defgroup HASHEx_Exported_Functions_Group3 HASHEx processing using functions
91 * @{
92 */
93
94 HAL_StatusTypeDef HAL_HASHEx_SHA224_Start_IT(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffer);
95 HAL_StatusTypeDef HAL_HASHEx_SHA256_Start_IT(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size, uint8_t* pOutBuffer);
96
97 /**
98 * @}
99 */
100
101 /** @defgroup HASHEx_Exported_Functions_Group4 HASHEx processing using DMA
102 * @{
103 */
104
105 HAL_StatusTypeDef HAL_HASHEx_SHA224_Start_DMA(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);
106 HAL_StatusTypeDef HAL_HASHEx_SHA224_Finish(HASH_HandleTypeDef *hhash, uint8_t* pOutBuffer, uint32_t Timeout);
107 HAL_StatusTypeDef HAL_HASHEx_SHA256_Start_DMA(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);
108 HAL_StatusTypeDef HAL_HASHEx_SHA256_Finish(HASH_HandleTypeDef *hhash, uint8_t* pOutBuffer, uint32_t Timeout);
109
110 /**
111 * @}
112 */
113
114 /** @defgroup HASHEx_Exported_Functions_Group5 HMAC processing using DMA
115 * @{
116 */
117
118 HAL_StatusTypeDef HAL_HMACEx_SHA224_Start_DMA(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);
119 HAL_StatusTypeDef HAL_HMACEx_SHA256_Start_DMA(HASH_HandleTypeDef *hhash, uint8_t *pInBuffer, uint32_t Size);
120 /**
121 * @}
122 */
123
124 /** @defgroup HASHEx_Exported_Functions_Group6 HASHEx processing functions
125 * @{
126 */
127
128 void HAL_HASHEx_IRQHandler(HASH_HandleTypeDef *hhash);
129
130 /**
131 * @}
132 */
133
134 /**
135 * @}
136 */
137
138 /* Private types -------------------------------------------------------------*/
139 /** @defgroup HASHEx_Private_Types HASHEx Private Types
140 * @{
141 */
142
143 /**
144 * @}
145 */
146
147 /* Private variables ---------------------------------------------------------*/
148 /** @defgroup HASHEx_Private_Variables HASHEx Private Variables
149 * @{
150 */
151
152 /**
153 * @}
154 */
155
156 /* Private constants ---------------------------------------------------------*/
157 /** @defgroup HASHEx_Private_Constants HASHEx Private Constants
158 * @{
159 */
160
161 /**
162 * @}
163 */
164
165 /* Private macros ------------------------------------------------------------*/
166 /** @defgroup HASHEx_Private_Macros HASHEx Private Macros
167 * @{
168 */
169
170 /**
171 * @}
172 */
173
174 /* Private functions ---------------------------------------------------------*/
175 /** @defgroup HASHEx_Private_Functions HASHEx Private Functions
176 * @{
177 */
178
179 /**
180 * @}
181 */
182
183 #endif /* STM32F437xx || STM32F439xx || STM32F479xx */
184 /**
185 * @}
186 */
187
188 /**
189 * @}
190 */
191
192 #ifdef __cplusplus
193 }
194 #endif
195
196 #endif /* __STM32F4xx_HAL_HASH_EX_H */
197
198 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/