Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
HAL_L476/stm32l4xx_hal_cryp_ex.h@1:d0dfbce63a89, 2017-02-24 (annotated)
- Committer:
- elmot
- Date:
- Fri Feb 24 21:13:56 2017 +0000
- Revision:
- 1:d0dfbce63a89
Ready-to-copy
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| elmot | 1:d0dfbce63a89 | 1 | /** |
| elmot | 1:d0dfbce63a89 | 2 | ****************************************************************************** |
| elmot | 1:d0dfbce63a89 | 3 | * @file stm32l4xx_hal_cryp_ex.h |
| elmot | 1:d0dfbce63a89 | 4 | * @author MCD Application Team |
| elmot | 1:d0dfbce63a89 | 5 | * @version V1.5.1 |
| elmot | 1:d0dfbce63a89 | 6 | * @date 31-May-2016 |
| elmot | 1:d0dfbce63a89 | 7 | * @brief Header file of CRYPEx HAL module. |
| elmot | 1:d0dfbce63a89 | 8 | ****************************************************************************** |
| elmot | 1:d0dfbce63a89 | 9 | * @attention |
| elmot | 1:d0dfbce63a89 | 10 | * |
| elmot | 1:d0dfbce63a89 | 11 | * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> |
| elmot | 1:d0dfbce63a89 | 12 | * |
| elmot | 1:d0dfbce63a89 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
| elmot | 1:d0dfbce63a89 | 14 | * are permitted provided that the following conditions are met: |
| elmot | 1:d0dfbce63a89 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
| elmot | 1:d0dfbce63a89 | 16 | * this list of conditions and the following disclaimer. |
| elmot | 1:d0dfbce63a89 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
| elmot | 1:d0dfbce63a89 | 18 | * this list of conditions and the following disclaimer in the documentation |
| elmot | 1:d0dfbce63a89 | 19 | * and/or other materials provided with the distribution. |
| elmot | 1:d0dfbce63a89 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
| elmot | 1:d0dfbce63a89 | 21 | * may be used to endorse or promote products derived from this software |
| elmot | 1:d0dfbce63a89 | 22 | * without specific prior written permission. |
| elmot | 1:d0dfbce63a89 | 23 | * |
| elmot | 1:d0dfbce63a89 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| elmot | 1:d0dfbce63a89 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| elmot | 1:d0dfbce63a89 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| elmot | 1:d0dfbce63a89 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| elmot | 1:d0dfbce63a89 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| elmot | 1:d0dfbce63a89 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| elmot | 1:d0dfbce63a89 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| elmot | 1:d0dfbce63a89 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| elmot | 1:d0dfbce63a89 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| elmot | 1:d0dfbce63a89 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| elmot | 1:d0dfbce63a89 | 34 | * |
| elmot | 1:d0dfbce63a89 | 35 | ****************************************************************************** |
| elmot | 1:d0dfbce63a89 | 36 | */ |
| elmot | 1:d0dfbce63a89 | 37 | |
| elmot | 1:d0dfbce63a89 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
| elmot | 1:d0dfbce63a89 | 39 | #ifndef __STM32L4xx_HAL_CRYP_EX_H |
| elmot | 1:d0dfbce63a89 | 40 | #define __STM32L4xx_HAL_CRYP_EX_H |
| elmot | 1:d0dfbce63a89 | 41 | |
| elmot | 1:d0dfbce63a89 | 42 | #ifdef __cplusplus |
| elmot | 1:d0dfbce63a89 | 43 | extern "C" { |
| elmot | 1:d0dfbce63a89 | 44 | #endif |
| elmot | 1:d0dfbce63a89 | 45 | |
| elmot | 1:d0dfbce63a89 | 46 | #if defined (STM32L442xx) || defined (STM32L443xx) || defined(STM32L485xx) || defined(STM32L486xx) |
| elmot | 1:d0dfbce63a89 | 47 | |
| elmot | 1:d0dfbce63a89 | 48 | |
| elmot | 1:d0dfbce63a89 | 49 | /* Includes ------------------------------------------------------------------*/ |
| elmot | 1:d0dfbce63a89 | 50 | #include "stm32l4xx_hal_def.h" |
| elmot | 1:d0dfbce63a89 | 51 | |
| elmot | 1:d0dfbce63a89 | 52 | /** @addtogroup STM32L4xx_HAL_Driver |
| elmot | 1:d0dfbce63a89 | 53 | * @{ |
| elmot | 1:d0dfbce63a89 | 54 | */ |
| elmot | 1:d0dfbce63a89 | 55 | |
| elmot | 1:d0dfbce63a89 | 56 | /** @addtogroup CRYPEx |
| elmot | 1:d0dfbce63a89 | 57 | * @{ |
| elmot | 1:d0dfbce63a89 | 58 | */ |
| elmot | 1:d0dfbce63a89 | 59 | |
| elmot | 1:d0dfbce63a89 | 60 | /* Exported types ------------------------------------------------------------*/ |
| elmot | 1:d0dfbce63a89 | 61 | /* Exported constants --------------------------------------------------------*/ |
| elmot | 1:d0dfbce63a89 | 62 | /* Exported functions --------------------------------------------------------*/ |
| elmot | 1:d0dfbce63a89 | 63 | |
| elmot | 1:d0dfbce63a89 | 64 | /** @addtogroup CRYPEx_Exported_Functions |
| elmot | 1:d0dfbce63a89 | 65 | * @{ |
| elmot | 1:d0dfbce63a89 | 66 | */ |
| elmot | 1:d0dfbce63a89 | 67 | |
| elmot | 1:d0dfbce63a89 | 68 | /** @addtogroup CRYPEx_Exported_Functions_Group1 |
| elmot | 1:d0dfbce63a89 | 69 | * @{ |
| elmot | 1:d0dfbce63a89 | 70 | */ |
| elmot | 1:d0dfbce63a89 | 71 | |
| elmot | 1:d0dfbce63a89 | 72 | /* CallBack functions ********************************************************/ |
| elmot | 1:d0dfbce63a89 | 73 | void HAL_CRYPEx_ComputationCpltCallback(CRYP_HandleTypeDef *hcryp); |
| elmot | 1:d0dfbce63a89 | 74 | |
| elmot | 1:d0dfbce63a89 | 75 | /** |
| elmot | 1:d0dfbce63a89 | 76 | * @} |
| elmot | 1:d0dfbce63a89 | 77 | */ |
| elmot | 1:d0dfbce63a89 | 78 | |
| elmot | 1:d0dfbce63a89 | 79 | /** @addtogroup CRYPEx_Exported_Functions_Group2 |
| elmot | 1:d0dfbce63a89 | 80 | * @{ |
| elmot | 1:d0dfbce63a89 | 81 | */ |
| elmot | 1:d0dfbce63a89 | 82 | |
| elmot | 1:d0dfbce63a89 | 83 | /* AES encryption/decryption processing functions ****************************/ |
| elmot | 1:d0dfbce63a89 | 84 | HAL_StatusTypeDef HAL_CRYPEx_AES(CRYP_HandleTypeDef *hcryp, uint8_t *pInputData, uint16_t Size, uint8_t *pOutputData, uint32_t Timeout); |
| elmot | 1:d0dfbce63a89 | 85 | HAL_StatusTypeDef HAL_CRYPEx_AES_IT(CRYP_HandleTypeDef *hcryp, uint8_t *pInputData, uint16_t Size, uint8_t *pOutputData); |
| elmot | 1:d0dfbce63a89 | 86 | HAL_StatusTypeDef HAL_CRYPEx_AES_DMA(CRYP_HandleTypeDef *hcryp, uint8_t *pInputData, uint16_t Size, uint8_t *pOutputData); |
| elmot | 1:d0dfbce63a89 | 87 | |
| elmot | 1:d0dfbce63a89 | 88 | /* AES encryption/decryption/authentication processing functions *************/ |
| elmot | 1:d0dfbce63a89 | 89 | HAL_StatusTypeDef HAL_CRYPEx_AES_Auth(CRYP_HandleTypeDef *hcryp, uint8_t *pInputData, uint64_t Size, uint8_t *pOutputData, uint32_t Timeout); |
| elmot | 1:d0dfbce63a89 | 90 | HAL_StatusTypeDef HAL_CRYPEx_AES_Auth_IT(CRYP_HandleTypeDef *hcryp, uint8_t *pInputData, uint64_t Size, uint8_t *pOutputData); |
| elmot | 1:d0dfbce63a89 | 91 | HAL_StatusTypeDef HAL_CRYPEx_AES_Auth_DMA(CRYP_HandleTypeDef *hcryp, uint8_t *pInputData, uint64_t Size, uint8_t *pOutputData); |
| elmot | 1:d0dfbce63a89 | 92 | |
| elmot | 1:d0dfbce63a89 | 93 | /** |
| elmot | 1:d0dfbce63a89 | 94 | * @} |
| elmot | 1:d0dfbce63a89 | 95 | */ |
| elmot | 1:d0dfbce63a89 | 96 | |
| elmot | 1:d0dfbce63a89 | 97 | /** @addtogroup CRYPEx_Exported_Functions_Group3 |
| elmot | 1:d0dfbce63a89 | 98 | * @{ |
| elmot | 1:d0dfbce63a89 | 99 | */ |
| elmot | 1:d0dfbce63a89 | 100 | |
| elmot | 1:d0dfbce63a89 | 101 | /* AES suspension/resumption functions ***************************************/ |
| elmot | 1:d0dfbce63a89 | 102 | void HAL_CRYPEx_Read_IVRegisters(CRYP_HandleTypeDef *hcryp, uint8_t* Output); |
| elmot | 1:d0dfbce63a89 | 103 | void HAL_CRYPEx_Write_IVRegisters(CRYP_HandleTypeDef *hcryp, uint8_t* Input); |
| elmot | 1:d0dfbce63a89 | 104 | void HAL_CRYPEx_Read_SuspendRegisters(CRYP_HandleTypeDef *hcryp, uint8_t* Output); |
| elmot | 1:d0dfbce63a89 | 105 | void HAL_CRYPEx_Write_SuspendRegisters(CRYP_HandleTypeDef *hcryp, uint8_t* Input); |
| elmot | 1:d0dfbce63a89 | 106 | void HAL_CRYPEx_Read_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint8_t* Output, uint32_t KeySize); |
| elmot | 1:d0dfbce63a89 | 107 | void HAL_CRYPEx_Write_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint8_t* Input, uint32_t KeySize); |
| elmot | 1:d0dfbce63a89 | 108 | void HAL_CRYPEx_Read_ControlRegister(CRYP_HandleTypeDef *hcryp, uint8_t* Output); |
| elmot | 1:d0dfbce63a89 | 109 | void HAL_CRYPEx_Write_ControlRegister(CRYP_HandleTypeDef *hcryp, uint8_t* Input); |
| elmot | 1:d0dfbce63a89 | 110 | void HAL_CRYPEx_ProcessSuspend(CRYP_HandleTypeDef *hcryp); |
| elmot | 1:d0dfbce63a89 | 111 | |
| elmot | 1:d0dfbce63a89 | 112 | /** |
| elmot | 1:d0dfbce63a89 | 113 | * @} |
| elmot | 1:d0dfbce63a89 | 114 | */ |
| elmot | 1:d0dfbce63a89 | 115 | |
| elmot | 1:d0dfbce63a89 | 116 | |
| elmot | 1:d0dfbce63a89 | 117 | /** |
| elmot | 1:d0dfbce63a89 | 118 | * @} |
| elmot | 1:d0dfbce63a89 | 119 | */ |
| elmot | 1:d0dfbce63a89 | 120 | |
| elmot | 1:d0dfbce63a89 | 121 | /* Private functions -----------------------------------------------------------*/ |
| elmot | 1:d0dfbce63a89 | 122 | /** @addtogroup CRYPEx_Private_Functions CRYPEx Private Functions |
| elmot | 1:d0dfbce63a89 | 123 | * @{ |
| elmot | 1:d0dfbce63a89 | 124 | */ |
| elmot | 1:d0dfbce63a89 | 125 | HAL_StatusTypeDef CRYP_AES_Auth_IT(CRYP_HandleTypeDef *hcryp); |
| elmot | 1:d0dfbce63a89 | 126 | |
| elmot | 1:d0dfbce63a89 | 127 | /** |
| elmot | 1:d0dfbce63a89 | 128 | * @} |
| elmot | 1:d0dfbce63a89 | 129 | */ |
| elmot | 1:d0dfbce63a89 | 130 | |
| elmot | 1:d0dfbce63a89 | 131 | |
| elmot | 1:d0dfbce63a89 | 132 | /** |
| elmot | 1:d0dfbce63a89 | 133 | * @} |
| elmot | 1:d0dfbce63a89 | 134 | */ |
| elmot | 1:d0dfbce63a89 | 135 | |
| elmot | 1:d0dfbce63a89 | 136 | /** |
| elmot | 1:d0dfbce63a89 | 137 | * @} |
| elmot | 1:d0dfbce63a89 | 138 | */ |
| elmot | 1:d0dfbce63a89 | 139 | |
| elmot | 1:d0dfbce63a89 | 140 | #endif /* defined (STM32L442xx) || defined (STM32L443xx) || defined(STM32L485xx) || defined(STM32L486xx) */ |
| elmot | 1:d0dfbce63a89 | 141 | |
| elmot | 1:d0dfbce63a89 | 142 | #ifdef __cplusplus |
| elmot | 1:d0dfbce63a89 | 143 | } |
| elmot | 1:d0dfbce63a89 | 144 | #endif |
| elmot | 1:d0dfbce63a89 | 145 | |
| elmot | 1:d0dfbce63a89 | 146 | #endif /* __STM32L4xx_HAL_CRYP_EX_H */ |
| elmot | 1:d0dfbce63a89 | 147 | |
| elmot | 1:d0dfbce63a89 | 148 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |