001

Committer:
ganlikun
Date:
Sun Jun 12 14:02:44 2022 +0000
Revision:
0:13413ea9a877
00

Who changed what in which revision?

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