stm32-cryp-lib

所属分类:加密解密
开发工具:C/C++
文件大小:4695KB
下载次数:163
上传日期:2014-10-31 10:18:07
上 传 者应许之地
说明:  STM32的加密库文件,官方的包含AES加密的各种模式。
(STM32 AES CRPY)

文件列表:
STM32 Cryptographic library package V2.0.6 (0, 2013-09-06)
STM32 Cryptographic library package V2.0.6\Libraries (0, 2013-09-06)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS (0, 2013-09-06)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device (0, 2013-09-06)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST (0, 2013-09-06)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F0xx (0, 2013-09-06)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F0xx\Include (0, 2013-09-06)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F0xx\Include\stm32f0xx.h (237739, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F0xx\Include\system_stm32f0xx.h (2220, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F0xx\Release_Notes.html (17060, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F0xx\Source (0, 2013-09-06)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates (0, 2013-09-06)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm (0, 2013-09-06)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\arm\startup_stm32f0xx.s (10646, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\gcc_ride7 (0, 2013-09-06)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\gcc_ride7\startup_stm32f0xx.s (8515, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\iar (0, 2013-09-06)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\iar\startup_stm32f0xx.s (11163, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\system_stm32f0xx.c (12412, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\TrueSTUDIO (0, 2013-09-06)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F0xx\Source\Templates\TrueSTUDIO\startup_stm32f0xx.s (8721, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x (0, 2013-09-06)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x\Release_Notes.html (26297, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x\startup (0, 2013-09-06)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x\startup\arm (0, 2013-09-06)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x\startup\arm\startup_stm32f10x_cl.s (15766, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x\startup\arm\startup_stm32f10x_hd.s (15503, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x\startup\arm\startup_stm32f10x_hd_vl.s (15692, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x\startup\arm\startup_stm32f10x_ld.s (12376, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x\startup\arm\startup_stm32f10x_ld_vl.s (13656, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x\startup\arm\startup_stm32f10x_md.s (12765, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x\startup\arm\startup_stm32f10x_md_vl.s (14073, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x\startup\arm\startup_stm32f10x_xl.s (15955, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x\startup\gcc_ride7 (0, 2013-09-06)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_cl.s (13072, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_hd.s (13160, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_hd_vl.s (12482, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_ld.s (9814, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_ld_vl.s (10562, 2013-06-29)
STM32 Cryptographic library package V2.0.6\Libraries\CMSIS\Device\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_md.s (10269, 2013-06-29)
... ...

/** @page AES AES128_CTR Example @verbatim ******************** (C) COPYRIGHT 2013 STMicroelectronics ******************* * @file AES128_CTR/readme.txt * @author MCD Application Team * @version V2.0.6 * @date 25-June-2013 * @brief Description of the "AES-128 in CTR mode" example. ****************************************************************************** * * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); * You may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.st.com/software_license_agreement_liberty_v2 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License * ****************************************************************************** @endverbatim @par Example Description This example describes how to use the STM32 Cryptographic Library AES algorithm and the different steps (Initialization/Append data/Finalization) to perform AES 128 bits Encryption/Decryption processes for CTR mode . This example is split into two parts: The first part is to encrypt DATA in CTR mode and compare between the encrypted data and expected encrypted data which is done to check that the input data have been correctly encrypted. The second part is to decrypt DATA in CTR mode and compare between the decrypted data and expected decrypted data which is done to check that the input data have been correctly decrypted. AES algorithm routines can return AES_SUCCESS in case of successful Encryption or Decryption operations or one of the following error codes in case of fail: - AES_ERR_BAD_OPERATION, - AES_ERR_BAD_CONTEXT, - AES_ERR_BAD_PARAMETER. @note NIST vectors examples for AES CTR are taken from: "Recommendation for Block Cipher Modes of Operation, 2001 Edition" Available at: http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf @par Directory contents - AES/AES128_CTR/main.c Main program @note The System Clock configuration are handled in the Cryptographic library project template for each device, and can be easily customized to your own configuration. @par Hardware and Software environment - This example runs on: - STM32F10x Devices. - STM32L1xx Devices. - STM32F2xx Devices. - STM32F40/41x Devices. - STM32F30x/31x Devices. - STM32F37x/38x Devices. - This example has been tested with STMicroelectronics STM3210B-EVAL (Medium- Density), STM3210E-EVAL (High-Density and XL-Density), STM3210C-EVAL (STM32F10x Connectivity-Line), STM32 Value line discovery kit (STM32F10x Medium-Density Value line), STM32100E-EVAL (High-Density Value line), STM3220G-EVAL, STM32L152-EVAL (STM32L1xx Ultra Low Power Medium-Density), STM32F4 discovery kit, STM32 20-21-45-46 G-EVAL, STM32F373C-EVAL, STM32F3 Discovery kit and STM32F0 discovery Kit and they don't depend on external hardware on the evaluation boards. @par How to use it? In order to make the program work, you must do the following : - Copy main.c source file from this example folder to the template folder under Project\STM32F10x_Cryptographic_Templates when using STM32F10x series. Project\STM32F2xx_Cryptographic_Templates when using STM32F2xx series. Project\STM32L1xx_Cryptographic_Templates when using STM32L1xx series. Project\STM32F0xx_Cryptographic_Templates when using STM32F0xx series. Project\STM32F4xx_Cryptographic_Templates when using STM32F4xx series. Project\STM32F37x_Cryptographic_Templates when using STM32F37x/38xseries. Project\STM32F30x_Cryptographic_Templates when using STM32F30x/31x series. - Open your preferred toolchain - Rebuild all files and load your image into target memory - Run the example *

© COPYRIGHT STMicroelectronics

*/

近期下载者

相关文件


收藏者