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