mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
targets/cmsis/TARGET_STM/TARGET_STM32F407VG/stm32f4xx_hal_cryp.h@310:6188e0254baa, 2014-09-16 (annotated)
- Committer:
- janekm
- Date:
- Tue Sep 16 22:42:01 2014 +0000
- Revision:
- 310:6188e0254baa
- Parent:
- 297:ec1b66a3d094
N/A
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 133:d4dda5c437f0 | 1 | /** |
mbed_official | 133:d4dda5c437f0 | 2 | ****************************************************************************** |
mbed_official | 133:d4dda5c437f0 | 3 | * @file stm32f4xx_hal_cryp.h |
mbed_official | 133:d4dda5c437f0 | 4 | * @author MCD Application Team |
mbed_official | 242:7074e42da0b2 | 5 | * @version V1.1.0RC2 |
mbed_official | 242:7074e42da0b2 | 6 | * @date 14-May-2014 |
mbed_official | 133:d4dda5c437f0 | 7 | * @brief Header file of CRYP HAL module. |
mbed_official | 133:d4dda5c437f0 | 8 | ****************************************************************************** |
mbed_official | 133:d4dda5c437f0 | 9 | * @attention |
mbed_official | 133:d4dda5c437f0 | 10 | * |
mbed_official | 133:d4dda5c437f0 | 11 | * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2> |
mbed_official | 133:d4dda5c437f0 | 12 | * |
mbed_official | 133:d4dda5c437f0 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
mbed_official | 133:d4dda5c437f0 | 14 | * are permitted provided that the following conditions are met: |
mbed_official | 133:d4dda5c437f0 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
mbed_official | 133:d4dda5c437f0 | 16 | * this list of conditions and the following disclaimer. |
mbed_official | 133:d4dda5c437f0 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
mbed_official | 133:d4dda5c437f0 | 18 | * this list of conditions and the following disclaimer in the documentation |
mbed_official | 133:d4dda5c437f0 | 19 | * and/or other materials provided with the distribution. |
mbed_official | 133:d4dda5c437f0 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
mbed_official | 133:d4dda5c437f0 | 21 | * may be used to endorse or promote products derived from this software |
mbed_official | 133:d4dda5c437f0 | 22 | * without specific prior written permission. |
mbed_official | 133:d4dda5c437f0 | 23 | * |
mbed_official | 133:d4dda5c437f0 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
mbed_official | 133:d4dda5c437f0 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
mbed_official | 133:d4dda5c437f0 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
mbed_official | 133:d4dda5c437f0 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
mbed_official | 133:d4dda5c437f0 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
mbed_official | 133:d4dda5c437f0 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
mbed_official | 133:d4dda5c437f0 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
mbed_official | 133:d4dda5c437f0 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
mbed_official | 133:d4dda5c437f0 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
mbed_official | 133:d4dda5c437f0 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
mbed_official | 133:d4dda5c437f0 | 34 | * |
mbed_official | 133:d4dda5c437f0 | 35 | ****************************************************************************** |
mbed_official | 133:d4dda5c437f0 | 36 | */ |
mbed_official | 133:d4dda5c437f0 | 37 | |
mbed_official | 133:d4dda5c437f0 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
mbed_official | 133:d4dda5c437f0 | 39 | #ifndef __STM32F4xx_HAL_CRYP_H |
mbed_official | 133:d4dda5c437f0 | 40 | #define __STM32F4xx_HAL_CRYP_H |
mbed_official | 133:d4dda5c437f0 | 41 | |
mbed_official | 133:d4dda5c437f0 | 42 | #ifdef __cplusplus |
mbed_official | 133:d4dda5c437f0 | 43 | extern "C" { |
mbed_official | 133:d4dda5c437f0 | 44 | #endif |
mbed_official | 133:d4dda5c437f0 | 45 | |
mbed_official | 133:d4dda5c437f0 | 46 | #if defined(STM32F415xx) || defined(STM32F417xx) || defined(STM32F437xx) || defined(STM32F439xx) |
mbed_official | 133:d4dda5c437f0 | 47 | /* Includes ------------------------------------------------------------------*/ |
mbed_official | 133:d4dda5c437f0 | 48 | #include "stm32f4xx_hal_def.h" |
mbed_official | 133:d4dda5c437f0 | 49 | |
mbed_official | 133:d4dda5c437f0 | 50 | /** @addtogroup STM32F4xx_HAL_Driver |
mbed_official | 133:d4dda5c437f0 | 51 | * @{ |
mbed_official | 133:d4dda5c437f0 | 52 | */ |
mbed_official | 133:d4dda5c437f0 | 53 | |
mbed_official | 133:d4dda5c437f0 | 54 | /** @addtogroup CRYP |
mbed_official | 133:d4dda5c437f0 | 55 | * @{ |
mbed_official | 242:7074e42da0b2 | 56 | */ |
mbed_official | 133:d4dda5c437f0 | 57 | |
mbed_official | 242:7074e42da0b2 | 58 | /* Exported types ------------------------------------------------------------*/ |
mbed_official | 133:d4dda5c437f0 | 59 | |
mbed_official | 133:d4dda5c437f0 | 60 | /** |
mbed_official | 242:7074e42da0b2 | 61 | * @brief CRYP Configuration Structure definition |
mbed_official | 133:d4dda5c437f0 | 62 | */ |
mbed_official | 133:d4dda5c437f0 | 63 | typedef struct |
mbed_official | 242:7074e42da0b2 | 64 | { |
mbed_official | 133:d4dda5c437f0 | 65 | uint32_t DataType; /*!< 32-bit data, 16-bit data, 8-bit data or 1-bit string. |
mbed_official | 133:d4dda5c437f0 | 66 | This parameter can be a value of @ref CRYP_Data_Type */ |
mbed_official | 242:7074e42da0b2 | 67 | |
mbed_official | 133:d4dda5c437f0 | 68 | uint32_t KeySize; /*!< Used only in AES mode only : 128, 192 or 256 bit key length. |
mbed_official | 133:d4dda5c437f0 | 69 | This parameter can be a value of @ref CRYP_Key_Size */ |
mbed_official | 242:7074e42da0b2 | 70 | |
mbed_official | 133:d4dda5c437f0 | 71 | uint8_t* pKey; /*!< The key used for encryption/decryption */ |
mbed_official | 242:7074e42da0b2 | 72 | |
mbed_official | 133:d4dda5c437f0 | 73 | uint8_t* pInitVect; /*!< The initialization vector used also as initialization |
mbed_official | 133:d4dda5c437f0 | 74 | counter in CTR mode */ |
mbed_official | 242:7074e42da0b2 | 75 | |
mbed_official | 133:d4dda5c437f0 | 76 | uint8_t IVSize; /*!< The size of initialization vector. |
mbed_official | 133:d4dda5c437f0 | 77 | This parameter (called nonce size in CCM) is used only |
mbed_official | 133:d4dda5c437f0 | 78 | in AES-128/192/256 encryption/decryption CCM mode */ |
mbed_official | 242:7074e42da0b2 | 79 | |
mbed_official | 133:d4dda5c437f0 | 80 | uint8_t TagSize; /*!< The size of returned authentication TAG. |
mbed_official | 133:d4dda5c437f0 | 81 | This parameter is used only in AES-128/192/256 |
mbed_official | 133:d4dda5c437f0 | 82 | encryption/decryption CCM mode */ |
mbed_official | 242:7074e42da0b2 | 83 | |
mbed_official | 133:d4dda5c437f0 | 84 | uint8_t* Header; /*!< The header used in GCM and CCM modes */ |
mbed_official | 242:7074e42da0b2 | 85 | |
mbed_official | 133:d4dda5c437f0 | 86 | uint16_t HeaderSize; /*!< The size of header buffer in bytes */ |
mbed_official | 242:7074e42da0b2 | 87 | |
mbed_official | 133:d4dda5c437f0 | 88 | uint8_t* pScratch; /*!< Scratch buffer used to append the header. It's size must be equal to header size + 21 bytes. |
mbed_official | 133:d4dda5c437f0 | 89 | This parameter is used only in AES-128/192/256 encryption/decryption CCM mode */ |
mbed_official | 133:d4dda5c437f0 | 90 | }CRYP_InitTypeDef; |
mbed_official | 133:d4dda5c437f0 | 91 | |
mbed_official | 133:d4dda5c437f0 | 92 | /** |
mbed_official | 242:7074e42da0b2 | 93 | * @brief HAL CRYP State structures definition |
mbed_official | 242:7074e42da0b2 | 94 | */ |
mbed_official | 133:d4dda5c437f0 | 95 | typedef enum |
mbed_official | 133:d4dda5c437f0 | 96 | { |
mbed_official | 133:d4dda5c437f0 | 97 | HAL_CRYP_STATE_RESET = 0x00, /*!< CRYP not yet initialized or disabled */ |
mbed_official | 133:d4dda5c437f0 | 98 | HAL_CRYP_STATE_READY = 0x01, /*!< CRYP initialized and ready for use */ |
mbed_official | 133:d4dda5c437f0 | 99 | HAL_CRYP_STATE_BUSY = 0x02, /*!< CRYP internal processing is ongoing */ |
mbed_official | 133:d4dda5c437f0 | 100 | HAL_CRYP_STATE_TIMEOUT = 0x03, /*!< CRYP timeout state */ |
mbed_official | 242:7074e42da0b2 | 101 | HAL_CRYP_STATE_ERROR = 0x04 /*!< CRYP error state */ |
mbed_official | 133:d4dda5c437f0 | 102 | }HAL_CRYP_STATETypeDef; |
mbed_official | 133:d4dda5c437f0 | 103 | |
mbed_official | 133:d4dda5c437f0 | 104 | /** |
mbed_official | 242:7074e42da0b2 | 105 | * @brief HAL CRYP phase structures definition |
mbed_official | 242:7074e42da0b2 | 106 | */ |
mbed_official | 133:d4dda5c437f0 | 107 | typedef enum |
mbed_official | 133:d4dda5c437f0 | 108 | { |
mbed_official | 133:d4dda5c437f0 | 109 | HAL_CRYP_PHASE_READY = 0x01, /*!< CRYP peripheral is ready for initialization. */ |
mbed_official | 133:d4dda5c437f0 | 110 | HAL_CRYP_PHASE_PROCESS = 0x02, /*!< CRYP peripheral is in processing phase */ |
mbed_official | 133:d4dda5c437f0 | 111 | HAL_CRYP_PHASE_FINAL = 0x03 /*!< CRYP peripheral is in final phase |
mbed_official | 133:d4dda5c437f0 | 112 | This is relevant only with CCM and GCM modes */ |
mbed_official | 133:d4dda5c437f0 | 113 | }HAL_PhaseTypeDef; |
mbed_official | 133:d4dda5c437f0 | 114 | |
mbed_official | 133:d4dda5c437f0 | 115 | /** |
mbed_official | 242:7074e42da0b2 | 116 | * @brief CRYP handle Structure definition |
mbed_official | 133:d4dda5c437f0 | 117 | */ |
mbed_official | 133:d4dda5c437f0 | 118 | typedef struct |
mbed_official | 242:7074e42da0b2 | 119 | { |
mbed_official | 133:d4dda5c437f0 | 120 | CRYP_InitTypeDef Init; /*!< CRYP required parameters */ |
mbed_official | 242:7074e42da0b2 | 121 | |
mbed_official | 133:d4dda5c437f0 | 122 | uint8_t *pCrypInBuffPtr; /*!< Pointer to CRYP processing (encryption, decryption,...) buffer */ |
mbed_official | 242:7074e42da0b2 | 123 | |
mbed_official | 133:d4dda5c437f0 | 124 | uint8_t *pCrypOutBuffPtr; /*!< Pointer to CRYP processing (encryption, decryption,...) buffer */ |
mbed_official | 242:7074e42da0b2 | 125 | |
mbed_official | 133:d4dda5c437f0 | 126 | __IO uint16_t CrypInCount; /*!< Counter of inputed data */ |
mbed_official | 242:7074e42da0b2 | 127 | |
mbed_official | 133:d4dda5c437f0 | 128 | __IO uint16_t CrypOutCount; /*!< Counter of outputed data */ |
mbed_official | 242:7074e42da0b2 | 129 | |
mbed_official | 133:d4dda5c437f0 | 130 | HAL_StatusTypeDef Status; /*!< CRYP peripheral status */ |
mbed_official | 242:7074e42da0b2 | 131 | |
mbed_official | 133:d4dda5c437f0 | 132 | HAL_PhaseTypeDef Phase; /*!< CRYP peripheral phase */ |
mbed_official | 242:7074e42da0b2 | 133 | |
mbed_official | 133:d4dda5c437f0 | 134 | DMA_HandleTypeDef *hdmain; /*!< CRYP In DMA handle parameters */ |
mbed_official | 242:7074e42da0b2 | 135 | |
mbed_official | 133:d4dda5c437f0 | 136 | DMA_HandleTypeDef *hdmaout; /*!< CRYP Out DMA handle parameters */ |
mbed_official | 242:7074e42da0b2 | 137 | |
mbed_official | 133:d4dda5c437f0 | 138 | HAL_LockTypeDef Lock; /*!< CRYP locking object */ |
mbed_official | 242:7074e42da0b2 | 139 | |
mbed_official | 133:d4dda5c437f0 | 140 | __IO HAL_CRYP_STATETypeDef State; /*!< CRYP peripheral state */ |
mbed_official | 133:d4dda5c437f0 | 141 | }CRYP_HandleTypeDef; |
mbed_official | 133:d4dda5c437f0 | 142 | |
mbed_official | 133:d4dda5c437f0 | 143 | /* Exported constants --------------------------------------------------------*/ |
mbed_official | 133:d4dda5c437f0 | 144 | |
mbed_official | 133:d4dda5c437f0 | 145 | /** @defgroup CRYP_Exported_Constants |
mbed_official | 133:d4dda5c437f0 | 146 | * @{ |
mbed_official | 133:d4dda5c437f0 | 147 | */ |
mbed_official | 133:d4dda5c437f0 | 148 | |
mbed_official | 133:d4dda5c437f0 | 149 | /** @defgroup CRYP_Key_Size |
mbed_official | 133:d4dda5c437f0 | 150 | * @{ |
mbed_official | 242:7074e42da0b2 | 151 | */ |
mbed_official | 133:d4dda5c437f0 | 152 | #define CRYP_KEYSIZE_128B ((uint32_t)0x00000000) |
mbed_official | 133:d4dda5c437f0 | 153 | #define CRYP_KEYSIZE_192B CRYP_CR_KEYSIZE_0 |
mbed_official | 133:d4dda5c437f0 | 154 | #define CRYP_KEYSIZE_256B CRYP_CR_KEYSIZE_1 |
mbed_official | 133:d4dda5c437f0 | 155 | |
mbed_official | 133:d4dda5c437f0 | 156 | #define IS_CRYP_KEYSIZE(KEYSIZE) (((KEYSIZE) == CRYP_KEYSIZE_128B) || \ |
mbed_official | 133:d4dda5c437f0 | 157 | ((KEYSIZE) == CRYP_KEYSIZE_192B) || \ |
mbed_official | 133:d4dda5c437f0 | 158 | ((KEYSIZE) == CRYP_KEYSIZE_256B)) |
mbed_official | 133:d4dda5c437f0 | 159 | /** |
mbed_official | 133:d4dda5c437f0 | 160 | * @} |
mbed_official | 133:d4dda5c437f0 | 161 | */ |
mbed_official | 133:d4dda5c437f0 | 162 | |
mbed_official | 133:d4dda5c437f0 | 163 | /** @defgroup CRYP_Data_Type |
mbed_official | 133:d4dda5c437f0 | 164 | * @{ |
mbed_official | 133:d4dda5c437f0 | 165 | */ |
mbed_official | 133:d4dda5c437f0 | 166 | #define CRYP_DATATYPE_32B ((uint32_t)0x00000000) |
mbed_official | 133:d4dda5c437f0 | 167 | #define CRYP_DATATYPE_16B CRYP_CR_DATATYPE_0 |
mbed_official | 133:d4dda5c437f0 | 168 | #define CRYP_DATATYPE_8B CRYP_CR_DATATYPE_1 |
mbed_official | 133:d4dda5c437f0 | 169 | #define CRYP_DATATYPE_1B CRYP_CR_DATATYPE |
mbed_official | 133:d4dda5c437f0 | 170 | |
mbed_official | 133:d4dda5c437f0 | 171 | #define IS_CRYP_DATATYPE(DATATYPE) (((DATATYPE) == CRYP_DATATYPE_32B) || \ |
mbed_official | 133:d4dda5c437f0 | 172 | ((DATATYPE) == CRYP_DATATYPE_16B) || \ |
mbed_official | 133:d4dda5c437f0 | 173 | ((DATATYPE) == CRYP_DATATYPE_8B) || \ |
mbed_official | 133:d4dda5c437f0 | 174 | ((DATATYPE) == CRYP_DATATYPE_1B)) |
mbed_official | 133:d4dda5c437f0 | 175 | /** |
mbed_official | 133:d4dda5c437f0 | 176 | * @} |
mbed_official | 133:d4dda5c437f0 | 177 | */ |
mbed_official | 133:d4dda5c437f0 | 178 | |
mbed_official | 133:d4dda5c437f0 | 179 | /** @defgroup CRYP_AlgoModeDirection |
mbed_official | 133:d4dda5c437f0 | 180 | * @{ |
mbed_official | 133:d4dda5c437f0 | 181 | */ |
mbed_official | 133:d4dda5c437f0 | 182 | #define CRYP_CR_ALGOMODE_DIRECTION ((uint32_t)0x0008003C) |
mbed_official | 133:d4dda5c437f0 | 183 | #define CRYP_CR_ALGOMODE_TDES_ECB_ENCRYPT ((uint32_t)0x00000000) |
mbed_official | 133:d4dda5c437f0 | 184 | #define CRYP_CR_ALGOMODE_TDES_ECB_DECRYPT ((uint32_t)0x00000004) |
mbed_official | 133:d4dda5c437f0 | 185 | #define CRYP_CR_ALGOMODE_TDES_CBC_ENCRYPT ((uint32_t)0x00000008) |
mbed_official | 133:d4dda5c437f0 | 186 | #define CRYP_CR_ALGOMODE_TDES_CBC_DECRYPT ((uint32_t)0x0000000C) |
mbed_official | 133:d4dda5c437f0 | 187 | #define CRYP_CR_ALGOMODE_DES_ECB_ENCRYPT ((uint32_t)0x00000010) |
mbed_official | 133:d4dda5c437f0 | 188 | #define CRYP_CR_ALGOMODE_DES_ECB_DECRYPT ((uint32_t)0x00000014) |
mbed_official | 133:d4dda5c437f0 | 189 | #define CRYP_CR_ALGOMODE_DES_CBC_ENCRYPT ((uint32_t)0x00000018) |
mbed_official | 133:d4dda5c437f0 | 190 | #define CRYP_CR_ALGOMODE_DES_CBC_DECRYPT ((uint32_t)0x0000001C) |
mbed_official | 133:d4dda5c437f0 | 191 | #define CRYP_CR_ALGOMODE_AES_ECB_ENCRYPT ((uint32_t)0x00000020) |
mbed_official | 133:d4dda5c437f0 | 192 | #define CRYP_CR_ALGOMODE_AES_ECB_DECRYPT ((uint32_t)0x00000024) |
mbed_official | 133:d4dda5c437f0 | 193 | #define CRYP_CR_ALGOMODE_AES_CBC_ENCRYPT ((uint32_t)0x00000028) |
mbed_official | 133:d4dda5c437f0 | 194 | #define CRYP_CR_ALGOMODE_AES_CBC_DECRYPT ((uint32_t)0x0000002C) |
mbed_official | 133:d4dda5c437f0 | 195 | #define CRYP_CR_ALGOMODE_AES_CTR_ENCRYPT ((uint32_t)0x00000030) |
mbed_official | 133:d4dda5c437f0 | 196 | #define CRYP_CR_ALGOMODE_AES_CTR_DECRYPT ((uint32_t)0x00000034) |
mbed_official | 133:d4dda5c437f0 | 197 | /** |
mbed_official | 133:d4dda5c437f0 | 198 | * @} |
mbed_official | 133:d4dda5c437f0 | 199 | */ |
mbed_official | 133:d4dda5c437f0 | 200 | |
mbed_official | 133:d4dda5c437f0 | 201 | /** @defgroup CRYP_Interrupt |
mbed_official | 133:d4dda5c437f0 | 202 | * @{ |
mbed_official | 133:d4dda5c437f0 | 203 | */ |
mbed_official | 133:d4dda5c437f0 | 204 | #define CRYP_IT_INI ((uint32_t)CRYP_IMSCR_INIM) /*!< Input FIFO Interrupt */ |
mbed_official | 133:d4dda5c437f0 | 205 | #define CRYP_IT_OUTI ((uint32_t)CRYP_IMSCR_OUTIM) /*!< Output FIFO Interrupt */ |
mbed_official | 133:d4dda5c437f0 | 206 | /** |
mbed_official | 133:d4dda5c437f0 | 207 | * @} |
mbed_official | 133:d4dda5c437f0 | 208 | */ |
mbed_official | 133:d4dda5c437f0 | 209 | |
mbed_official | 133:d4dda5c437f0 | 210 | /** @defgroup CRYP_Flags |
mbed_official | 133:d4dda5c437f0 | 211 | * @{ |
mbed_official | 133:d4dda5c437f0 | 212 | */ |
mbed_official | 133:d4dda5c437f0 | 213 | |
mbed_official | 133:d4dda5c437f0 | 214 | #define CRYP_FLAG_BUSY ((uint32_t)0x00000010) /*!< The CRYP core is currently |
mbed_official | 133:d4dda5c437f0 | 215 | processing a block of data |
mbed_official | 133:d4dda5c437f0 | 216 | or a key preparation (for |
mbed_official | 133:d4dda5c437f0 | 217 | AES decryption). */ |
mbed_official | 133:d4dda5c437f0 | 218 | #define CRYP_FLAG_IFEM ((uint32_t)0x00000001) /*!< Input FIFO is empty */ |
mbed_official | 133:d4dda5c437f0 | 219 | #define CRYP_FLAG_IFNF ((uint32_t)0x00000002) /*!< Input FIFO is not Full */ |
mbed_official | 133:d4dda5c437f0 | 220 | #define CRYP_FLAG_OFNE ((uint32_t)0x00000004) /*!< Output FIFO is not empty */ |
mbed_official | 133:d4dda5c437f0 | 221 | #define CRYP_FLAG_OFFU ((uint32_t)0x00000008) /*!< Output FIFO is Full */ |
mbed_official | 133:d4dda5c437f0 | 222 | #define CRYP_FLAG_OUTRIS ((uint32_t)0x01000002) /*!< Output FIFO service raw |
mbed_official | 133:d4dda5c437f0 | 223 | interrupt status */ |
mbed_official | 133:d4dda5c437f0 | 224 | #define CRYP_FLAG_INRIS ((uint32_t)0x01000001) /*!< Input FIFO service raw |
mbed_official | 133:d4dda5c437f0 | 225 | interrupt status */ |
mbed_official | 133:d4dda5c437f0 | 226 | /** |
mbed_official | 133:d4dda5c437f0 | 227 | * @} |
mbed_official | 242:7074e42da0b2 | 228 | */ |
mbed_official | 133:d4dda5c437f0 | 229 | |
mbed_official | 133:d4dda5c437f0 | 230 | /** |
mbed_official | 133:d4dda5c437f0 | 231 | * @} |
mbed_official | 133:d4dda5c437f0 | 232 | */ |
mbed_official | 133:d4dda5c437f0 | 233 | |
mbed_official | 133:d4dda5c437f0 | 234 | /* Exported macro ------------------------------------------------------------*/ |
mbed_official | 133:d4dda5c437f0 | 235 | |
mbed_official | 242:7074e42da0b2 | 236 | /** @brief Reset CRYP handle state |
mbed_official | 242:7074e42da0b2 | 237 | * @param __HANDLE__: specifies the CRYP handle. |
mbed_official | 242:7074e42da0b2 | 238 | * @retval None |
mbed_official | 242:7074e42da0b2 | 239 | */ |
mbed_official | 242:7074e42da0b2 | 240 | #define __HAL_CRYP_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_CRYP_STATE_RESET) |
mbed_official | 242:7074e42da0b2 | 241 | |
mbed_official | 133:d4dda5c437f0 | 242 | /** |
mbed_official | 133:d4dda5c437f0 | 243 | * @brief Enable/Disable the CRYP peripheral. |
mbed_official | 133:d4dda5c437f0 | 244 | * @param None |
mbed_official | 133:d4dda5c437f0 | 245 | * @retval None |
mbed_official | 133:d4dda5c437f0 | 246 | */ |
mbed_official | 133:d4dda5c437f0 | 247 | #define __HAL_CRYP_ENABLE() (CRYP->CR |= CRYP_CR_CRYPEN) |
mbed_official | 133:d4dda5c437f0 | 248 | #define __HAL_CRYP_DISABLE() (CRYP->CR &= ~CRYP_CR_CRYPEN) |
mbed_official | 133:d4dda5c437f0 | 249 | |
mbed_official | 133:d4dda5c437f0 | 250 | /** |
mbed_official | 133:d4dda5c437f0 | 251 | * @brief Flush the data FIFO. |
mbed_official | 133:d4dda5c437f0 | 252 | * @param None |
mbed_official | 133:d4dda5c437f0 | 253 | * @retval None |
mbed_official | 133:d4dda5c437f0 | 254 | */ |
mbed_official | 133:d4dda5c437f0 | 255 | #define __HAL_CRYP_FIFO_FLUSH() (CRYP->CR |= CRYP_CR_FFLUSH) |
mbed_official | 133:d4dda5c437f0 | 256 | |
mbed_official | 133:d4dda5c437f0 | 257 | /** |
mbed_official | 242:7074e42da0b2 | 258 | * @brief Set the algorithm mode: AES-ECB, AES-CBC, AES-CTR, DES-ECB, DES-CBC, |
mbed_official | 133:d4dda5c437f0 | 259 | * @param MODE: The algorithm mode. |
mbed_official | 133:d4dda5c437f0 | 260 | * @retval None |
mbed_official | 133:d4dda5c437f0 | 261 | */ |
mbed_official | 133:d4dda5c437f0 | 262 | #define __HAL_CRYP_SET_MODE(MODE) CRYP->CR |= (uint32_t)(MODE) |
mbed_official | 133:d4dda5c437f0 | 263 | |
mbed_official | 133:d4dda5c437f0 | 264 | /** @brief Check whether the specified CRYP flag is set or not. |
mbed_official | 133:d4dda5c437f0 | 265 | * @param __FLAG__: specifies the flag to check. |
mbed_official | 133:d4dda5c437f0 | 266 | * This parameter can be one of the following values: |
mbed_official | 133:d4dda5c437f0 | 267 | * @arg CRYP_FLAG_BUSY: The CRYP core is currently processing a block of data |
mbed_official | 133:d4dda5c437f0 | 268 | * or a key preparation (for AES decryption). |
mbed_official | 133:d4dda5c437f0 | 269 | * @arg CRYP_FLAG_IFEM: Input FIFO is empty |
mbed_official | 133:d4dda5c437f0 | 270 | * @arg CRYP_FLAG_IFNF: Input FIFO is not full |
mbed_official | 133:d4dda5c437f0 | 271 | * @arg CRYP_FLAG_INRIS: Input FIFO service raw interrupt is pending |
mbed_official | 133:d4dda5c437f0 | 272 | * @arg CRYP_FLAG_OFNE: Output FIFO is not empty |
mbed_official | 133:d4dda5c437f0 | 273 | * @arg CRYP_FLAG_OFFU: Output FIFO is full |
mbed_official | 133:d4dda5c437f0 | 274 | * @arg CRYP_FLAG_OUTRIS: Input FIFO service raw interrupt is pending |
mbed_official | 133:d4dda5c437f0 | 275 | * @retval The new state of __FLAG__ (TRUE or FALSE). |
mbed_official | 133:d4dda5c437f0 | 276 | */ |
mbed_official | 133:d4dda5c437f0 | 277 | #define CRYP_FLAG_MASK ((uint32_t)0x0000001F) |
mbed_official | 133:d4dda5c437f0 | 278 | #define __HAL_CRYP_GET_FLAG(__FLAG__) ((((uint8_t)((__FLAG__) >> 24)) == 0x01)?(((CRYP->RISR) & ((__FLAG__) & CRYP_FLAG_MASK)) == ((__FLAG__) & CRYP_FLAG_MASK)): \ |
mbed_official | 133:d4dda5c437f0 | 279 | (((CRYP->RISR) & ((__FLAG__) & CRYP_FLAG_MASK)) == ((__FLAG__) & CRYP_FLAG_MASK))) |
mbed_official | 133:d4dda5c437f0 | 280 | |
mbed_official | 133:d4dda5c437f0 | 281 | /** @brief Check whether the specified CRYP interrupt is set or not. |
mbed_official | 133:d4dda5c437f0 | 282 | * @param __INTERRUPT__: specifies the interrupt to check. |
mbed_official | 133:d4dda5c437f0 | 283 | * This parameter can be one of the following values: |
mbed_official | 133:d4dda5c437f0 | 284 | * @arg CRYP_IT_INRIS: Input FIFO service raw interrupt is pending |
mbed_official | 133:d4dda5c437f0 | 285 | * @arg CRYP_IT_OUTRIS: Output FIFO service raw interrupt is pending |
mbed_official | 133:d4dda5c437f0 | 286 | * @retval The new state of __INTERRUPT__ (TRUE or FALSE). |
mbed_official | 133:d4dda5c437f0 | 287 | */ |
mbed_official | 133:d4dda5c437f0 | 288 | #define __HAL_CRYP_GET_IT(__INTERRUPT__) ((CRYP->MISR & (__INTERRUPT__)) == (__INTERRUPT__)) |
mbed_official | 133:d4dda5c437f0 | 289 | |
mbed_official | 133:d4dda5c437f0 | 290 | /** |
mbed_official | 133:d4dda5c437f0 | 291 | * @brief Enable the CRYP interrupt. |
mbed_official | 133:d4dda5c437f0 | 292 | * @param __INTERRUPT__: CRYP Interrupt. |
mbed_official | 133:d4dda5c437f0 | 293 | * @retval None |
mbed_official | 133:d4dda5c437f0 | 294 | */ |
mbed_official | 133:d4dda5c437f0 | 295 | #define __HAL_CRYP_ENABLE_IT(__INTERRUPT__) ((CRYP->IMSCR) |= (__INTERRUPT__)) |
mbed_official | 133:d4dda5c437f0 | 296 | |
mbed_official | 133:d4dda5c437f0 | 297 | /** |
mbed_official | 133:d4dda5c437f0 | 298 | * @brief Disable the CRYP interrupt. |
mbed_official | 133:d4dda5c437f0 | 299 | * @param __INTERRUPT__: CRYP interrupt. |
mbed_official | 133:d4dda5c437f0 | 300 | * @retval None |
mbed_official | 133:d4dda5c437f0 | 301 | */ |
mbed_official | 133:d4dda5c437f0 | 302 | #define __HAL_CRYP_DISABLE_IT(__INTERRUPT__) ((CRYP->IMSCR) &= ~(__INTERRUPT__)) |
mbed_official | 133:d4dda5c437f0 | 303 | |
mbed_official | 133:d4dda5c437f0 | 304 | /* Include CRYP HAL Extension module */ |
mbed_official | 133:d4dda5c437f0 | 305 | #include "stm32f4xx_hal_cryp_ex.h" |
mbed_official | 133:d4dda5c437f0 | 306 | |
mbed_official | 133:d4dda5c437f0 | 307 | /* Exported functions --------------------------------------------------------*/ |
mbed_official | 242:7074e42da0b2 | 308 | /* Initialization/de-initialization functions ********************************/ |
mbed_official | 133:d4dda5c437f0 | 309 | HAL_StatusTypeDef HAL_CRYP_Init(CRYP_HandleTypeDef *hcryp); |
mbed_official | 133:d4dda5c437f0 | 310 | HAL_StatusTypeDef HAL_CRYP_DeInit(CRYP_HandleTypeDef *hcryp); |
mbed_official | 133:d4dda5c437f0 | 311 | |
mbed_official | 133:d4dda5c437f0 | 312 | /* AES encryption/decryption using polling ***********************************/ |
mbed_official | 133:d4dda5c437f0 | 313 | HAL_StatusTypeDef HAL_CRYP_AESECB_Encrypt(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData, uint32_t Timeout); |
mbed_official | 133:d4dda5c437f0 | 314 | HAL_StatusTypeDef HAL_CRYP_AESECB_Decrypt(CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData, uint32_t Timeout); |
mbed_official | 133:d4dda5c437f0 | 315 | HAL_StatusTypeDef HAL_CRYP_AESCBC_Encrypt(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData, uint32_t Timeout); |
mbed_official | 133:d4dda5c437f0 | 316 | HAL_StatusTypeDef HAL_CRYP_AESCBC_Decrypt(CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData, uint32_t Timeout); |
mbed_official | 133:d4dda5c437f0 | 317 | HAL_StatusTypeDef HAL_CRYP_AESCTR_Encrypt(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData, uint32_t Timeout); |
mbed_official | 133:d4dda5c437f0 | 318 | HAL_StatusTypeDef HAL_CRYP_AESCTR_Decrypt(CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData, uint32_t Timeout); |
mbed_official | 133:d4dda5c437f0 | 319 | |
mbed_official | 133:d4dda5c437f0 | 320 | /* AES encryption/decryption using interrupt *********************************/ |
mbed_official | 133:d4dda5c437f0 | 321 | HAL_StatusTypeDef HAL_CRYP_AESECB_Encrypt_IT(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData); |
mbed_official | 133:d4dda5c437f0 | 322 | HAL_StatusTypeDef HAL_CRYP_AESCBC_Encrypt_IT(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData); |
mbed_official | 133:d4dda5c437f0 | 323 | HAL_StatusTypeDef HAL_CRYP_AESCTR_Encrypt_IT(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData); |
mbed_official | 133:d4dda5c437f0 | 324 | HAL_StatusTypeDef HAL_CRYP_AESECB_Decrypt_IT(CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData); |
mbed_official | 133:d4dda5c437f0 | 325 | HAL_StatusTypeDef HAL_CRYP_AESCTR_Decrypt_IT(CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData); |
mbed_official | 133:d4dda5c437f0 | 326 | HAL_StatusTypeDef HAL_CRYP_AESCBC_Decrypt_IT(CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData); |
mbed_official | 133:d4dda5c437f0 | 327 | |
mbed_official | 133:d4dda5c437f0 | 328 | /* AES encryption/decryption using DMA ***************************************/ |
mbed_official | 133:d4dda5c437f0 | 329 | HAL_StatusTypeDef HAL_CRYP_AESECB_Encrypt_DMA(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData); |
mbed_official | 133:d4dda5c437f0 | 330 | HAL_StatusTypeDef HAL_CRYP_AESECB_Decrypt_DMA(CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData); |
mbed_official | 133:d4dda5c437f0 | 331 | HAL_StatusTypeDef HAL_CRYP_AESCBC_Encrypt_DMA(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData); |
mbed_official | 133:d4dda5c437f0 | 332 | HAL_StatusTypeDef HAL_CRYP_AESCBC_Decrypt_DMA(CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData); |
mbed_official | 133:d4dda5c437f0 | 333 | HAL_StatusTypeDef HAL_CRYP_AESCTR_Encrypt_DMA(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData); |
mbed_official | 133:d4dda5c437f0 | 334 | HAL_StatusTypeDef HAL_CRYP_AESCTR_Decrypt_DMA(CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData); |
mbed_official | 133:d4dda5c437f0 | 335 | |
mbed_official | 133:d4dda5c437f0 | 336 | /* DES encryption/decryption using polling ***********************************/ |
mbed_official | 133:d4dda5c437f0 | 337 | HAL_StatusTypeDef HAL_CRYP_DESECB_Encrypt(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData, uint32_t Timeout); |
mbed_official | 133:d4dda5c437f0 | 338 | HAL_StatusTypeDef HAL_CRYP_DESCBC_Encrypt(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData, uint32_t Timeout); |
mbed_official | 133:d4dda5c437f0 | 339 | HAL_StatusTypeDef HAL_CRYP_DESECB_Decrypt(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData, uint32_t Timeout); |
mbed_official | 133:d4dda5c437f0 | 340 | HAL_StatusTypeDef HAL_CRYP_DESCBC_Decrypt(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData, uint32_t Timeout); |
mbed_official | 133:d4dda5c437f0 | 341 | |
mbed_official | 133:d4dda5c437f0 | 342 | /* DES encryption/decryption using interrupt *********************************/ |
mbed_official | 133:d4dda5c437f0 | 343 | HAL_StatusTypeDef HAL_CRYP_DESECB_Encrypt_IT(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData); |
mbed_official | 133:d4dda5c437f0 | 344 | HAL_StatusTypeDef HAL_CRYP_DESECB_Decrypt_IT(CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData); |
mbed_official | 133:d4dda5c437f0 | 345 | HAL_StatusTypeDef HAL_CRYP_DESCBC_Encrypt_IT(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData); |
mbed_official | 133:d4dda5c437f0 | 346 | HAL_StatusTypeDef HAL_CRYP_DESCBC_Decrypt_IT(CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData); |
mbed_official | 133:d4dda5c437f0 | 347 | |
mbed_official | 133:d4dda5c437f0 | 348 | /* DES encryption/decryption using DMA ***************************************/ |
mbed_official | 133:d4dda5c437f0 | 349 | HAL_StatusTypeDef HAL_CRYP_DESECB_Encrypt_DMA(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData); |
mbed_official | 133:d4dda5c437f0 | 350 | HAL_StatusTypeDef HAL_CRYP_DESECB_Decrypt_DMA(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData); |
mbed_official | 133:d4dda5c437f0 | 351 | HAL_StatusTypeDef HAL_CRYP_DESCBC_Encrypt_DMA(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData); |
mbed_official | 133:d4dda5c437f0 | 352 | HAL_StatusTypeDef HAL_CRYP_DESCBC_Decrypt_DMA(CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData); |
mbed_official | 133:d4dda5c437f0 | 353 | |
mbed_official | 133:d4dda5c437f0 | 354 | /* TDES encryption/decryption using polling **********************************/ |
mbed_official | 133:d4dda5c437f0 | 355 | HAL_StatusTypeDef HAL_CRYP_TDESECB_Encrypt(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData, uint32_t Timeout); |
mbed_official | 133:d4dda5c437f0 | 356 | HAL_StatusTypeDef HAL_CRYP_TDESCBC_Encrypt(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData, uint32_t Timeout); |
mbed_official | 133:d4dda5c437f0 | 357 | HAL_StatusTypeDef HAL_CRYP_TDESECB_Decrypt(CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData, uint32_t Timeout); |
mbed_official | 133:d4dda5c437f0 | 358 | HAL_StatusTypeDef HAL_CRYP_TDESCBC_Decrypt(CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData, uint32_t Timeout); |
mbed_official | 133:d4dda5c437f0 | 359 | |
mbed_official | 133:d4dda5c437f0 | 360 | /* TDES encryption/decryption using interrupt ********************************/ |
mbed_official | 133:d4dda5c437f0 | 361 | HAL_StatusTypeDef HAL_CRYP_TDESECB_Encrypt_IT(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData); |
mbed_official | 133:d4dda5c437f0 | 362 | HAL_StatusTypeDef HAL_CRYP_TDESECB_Decrypt_IT(CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData); |
mbed_official | 133:d4dda5c437f0 | 363 | HAL_StatusTypeDef HAL_CRYP_TDESCBC_Encrypt_IT(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData); |
mbed_official | 133:d4dda5c437f0 | 364 | HAL_StatusTypeDef HAL_CRYP_TDESCBC_Decrypt_IT(CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData); |
mbed_official | 133:d4dda5c437f0 | 365 | |
mbed_official | 133:d4dda5c437f0 | 366 | /* TDES encryption/decryption using DMA **************************************/ |
mbed_official | 133:d4dda5c437f0 | 367 | HAL_StatusTypeDef HAL_CRYP_TDESECB_Encrypt_DMA(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData); |
mbed_official | 133:d4dda5c437f0 | 368 | HAL_StatusTypeDef HAL_CRYP_TDESECB_Decrypt_DMA(CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData); |
mbed_official | 133:d4dda5c437f0 | 369 | HAL_StatusTypeDef HAL_CRYP_TDESCBC_Encrypt_DMA(CRYP_HandleTypeDef *hcryp, uint8_t *pPlainData, uint16_t Size, uint8_t *pCypherData); |
mbed_official | 133:d4dda5c437f0 | 370 | HAL_StatusTypeDef HAL_CRYP_TDESCBC_Decrypt_DMA(CRYP_HandleTypeDef *hcryp, uint8_t *pCypherData, uint16_t Size, uint8_t *pPlainData); |
mbed_official | 133:d4dda5c437f0 | 371 | |
mbed_official | 242:7074e42da0b2 | 372 | /* Processing functions ******************************************************/ |
mbed_official | 133:d4dda5c437f0 | 373 | void HAL_CRYP_IRQHandler(CRYP_HandleTypeDef *hcryp); |
mbed_official | 133:d4dda5c437f0 | 374 | |
mbed_official | 242:7074e42da0b2 | 375 | /* Peripheral State functions ************************************************/ |
mbed_official | 133:d4dda5c437f0 | 376 | HAL_CRYP_STATETypeDef HAL_CRYP_GetState(CRYP_HandleTypeDef *hcryp); |
mbed_official | 133:d4dda5c437f0 | 377 | |
mbed_official | 133:d4dda5c437f0 | 378 | /* MSP functions *************************************************************/ |
mbed_official | 133:d4dda5c437f0 | 379 | void HAL_CRYP_MspInit(CRYP_HandleTypeDef *hcryp); |
mbed_official | 133:d4dda5c437f0 | 380 | void HAL_CRYP_MspDeInit(CRYP_HandleTypeDef *hcryp); |
mbed_official | 133:d4dda5c437f0 | 381 | |
mbed_official | 133:d4dda5c437f0 | 382 | /* CallBack functions ********************************************************/ |
mbed_official | 133:d4dda5c437f0 | 383 | void HAL_CRYP_InCpltCallback(CRYP_HandleTypeDef *hcryp); |
mbed_official | 133:d4dda5c437f0 | 384 | void HAL_CRYP_OutCpltCallback(CRYP_HandleTypeDef *hcryp); |
mbed_official | 133:d4dda5c437f0 | 385 | void HAL_CRYP_ErrorCallback(CRYP_HandleTypeDef *hcryp); |
mbed_official | 133:d4dda5c437f0 | 386 | |
mbed_official | 133:d4dda5c437f0 | 387 | #endif /* STM32F415xx || STM32F417xx || STM32F437xx || STM32F439xx */ |
mbed_official | 133:d4dda5c437f0 | 388 | |
mbed_official | 133:d4dda5c437f0 | 389 | /** |
mbed_official | 133:d4dda5c437f0 | 390 | * @} |
mbed_official | 133:d4dda5c437f0 | 391 | */ |
mbed_official | 133:d4dda5c437f0 | 392 | |
mbed_official | 133:d4dda5c437f0 | 393 | /** |
mbed_official | 133:d4dda5c437f0 | 394 | * @} |
mbed_official | 133:d4dda5c437f0 | 395 | */ |
mbed_official | 133:d4dda5c437f0 | 396 | |
mbed_official | 133:d4dda5c437f0 | 397 | #ifdef __cplusplus |
mbed_official | 133:d4dda5c437f0 | 398 | } |
mbed_official | 133:d4dda5c437f0 | 399 | #endif |
mbed_official | 133:d4dda5c437f0 | 400 | |
mbed_official | 133:d4dda5c437f0 | 401 | #endif /* __STM32F4xx_HAL_CRYP_H */ |
mbed_official | 133:d4dda5c437f0 | 402 | |
mbed_official | 133:d4dda5c437f0 | 403 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |