/**
@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 Licens
*
******************************************************************************
@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 both CTR modes .
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 is done to check that the input data have been
correctly encrypted.
The Second part is to decrypt DATA in CTRs mode and compare between the decrypted
data and expected decrypted data is done to check that the input data have been
correctly decrypted.
@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 devices, and can be easily customized
to your own configuration.
@par Hardware and Software environment
- This example runs on:
- STM32F10x Connectivity line, High-Density, Medium-Density,
XL-Density, High-Density Value line, Medium-Density Value line,
Low-Density and Low-Density Value line Devices.
- STM32L1xx Ultra Low Power Medium-Density Devices Devices.
- STM32F2xx Devices.
- STM32F40/1x Devices.
- STM32F30x/31x Devices.
- STM32F37x/38x Devices.
@note - When using optimized STM32 Cryptographic library based on hardware
Cryptographic peripheral DMA2 Stream 5 and DMA2 Stream 6 are reserved to
perform data tranfer to/from Cryptographic block.
- Cryptographic and DMA2 peripheral clocks are enabled with algorithm
initialization.
- User application should disable these clocks when no more
encryption/decryption will be performed.
- 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
and STM32 20-21-45-46 G-EVAL evaluation boards and doesn't depend on external
hardware on the evaluation boards.
- 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 doesn'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 STM32L4xx series.
Project\STM32F4xx_Cryptographic_Templates when using STM32L4xx 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
* <h3><center>© COPYRIGHT STMicroelectronics</center></h3>
*/
没有合适的资源?快使用搜索试试~ 我知道了~
stm32-cryp-lib(STM32 芯片加密库)
共844个文件
h:336个
c:305个
s:73个
5星 · 超过95%的资源 需积分: 49 151 下载量 127 浏览量
2017-10-20
11:48:13
上传
评论 4
收藏 4.59MB ZIP 举报
温馨提示
STM32 芯片加密库函数,用于工程加密!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
资源推荐
资源详情
资源评论
收起资源包目录
stm32-cryp-lib(STM32 芯片加密库) (844个子文件)
M0_CryptoFW_2_0_6.a 175KB
M4_CryptoFW_2_0_6.a 163KB
M3_CryptoFW_L1xx_2_0_6.a 163KB
M3_CryptoFW_2_0_6.a 163KB
M4_CryptoFW_RngHW_2_0_6.a 163KB
M3_CryptoFW_RngHW_2_0_6.a 162KB
M4_CryptoHW_2_0_6.a 137KB
M3_CryptoHW_2_0_6.a 137KB
cstart_thumb2.asm 4KB
cstart_thumb2.asm 4KB
cstart_thumb2.asm 4KB
logo.bmp 7KB
stm32f30x_tim.c 145KB
stm32f0xx_tim.c 123KB
stm32f2xx_tim.c 123KB
stm32f4xx_tim.c 122KB
stm32f37x_tim.c 121KB
stm32l152d_eval_glass_lcd.c 109KB
stm32l1xx_tim.c 108KB
stm32f10x_tim.c 107KB
stm32f4xx_rtc.c 100KB
stm32l1xx_rtc.c 96KB
stm32f37x_rtc.c 96KB
stm32f30x_rtc.c 95KB
stm32f30x_adc.c 91KB
stm324x7i_eval_sdio_sd.c 91KB
stm324xg_eval_sdio_sd.c 91KB
stm32f0xx_rtc.c 88KB
stm322xg_eval_sdio_sd.c 87KB
stm32l152d_eval_sdio_sd.c 87KB
stm32f30x_usart.c 85KB
stm32f2xx_rtc.c 82KB
stm32f37x_usart.c 81KB
stm32f0xx_usart.c 80KB
stm32f4xx_rcc.c 76KB
stm32l1xx_adc.c 73KB
stm32f2xx_rcc.c 73KB
stm32f4xx_adc.c 67KB
stm32f2xx_adc.c 67KB
stm32l1xx_rcc.c 66KB
stm32l1xx_flash.c 66KB
stm32f30x_rcc.c 65KB
stm32f37x_rcc.c 64KB
stm32f10x_flash.c 61KB
stm32303c_eval_audio_codec.c 59KB
stm32f4xx_can.c 59KB
stm32f2xx_can.c 59KB
stm32f37x_sdadc.c 59KB
stm32f0xx_rcc.c 58KB
stm324xg_eval_ioe.c 58KB
stm324x7i_eval_ioe.c 58KB
stm320518_eval_cec.c 58KB
stm32f37x_can.c 57KB
stm32f30x_can.c 57KB
stm32f37x_adc.c 57KB
stm32l1xx_usart.c 57KB
stm320518_eval_lcd.c 57KB
stm32f4xx_usart.c 57KB
stm32373c_eval_cec.c 56KB
stm32f4xx_cryp_aes.c 56KB
stm32f30x_spi.c 56KB
stm32f2xx_usart.c 55KB
stm32f37x_i2c.c 55KB
stm32f0xx_i2c.c 55KB
stm32f30x_i2c.c 55KB
stm32l152d_eval_lcd.c 54KB
stm32100b_eval_lcd.c 54KB
stm3210b_eval_lcd.c 54KB
stm322xg_eval_audio_codec.c 53KB
stm324x7i_eval_audio_codec.c 53KB
stm32f4xx_i2c.c 53KB
stm324xg_eval_audio_codec.c 53KB
stm32f4xx_dma.c 52KB
stm32f2xx_i2c.c 52KB
stm32f2xx_dma.c 51KB
stm32l152d_eval_audio_codec.c 51KB
stm32f4xx_spi.c 51KB
stm32373c_eval_audio_codec.c 51KB
stm32f37x_spi.c 50KB
stm32303c_eval_lcd.c 50KB
stm32f10x_rcc.c 50KB
stm32f0xx_spi.c 50KB
stm32l1xx_i2c.c 49KB
stm322xg_eval_ioe.c 49KB
stm32100b_eval_cec.c 49KB
stm32100e_eval_cec.c 49KB
stm3210c_eval_ioe.c 49KB
stm32373c_eval_lcd.c 48KB
stm32l152_eval_lcd.c 48KB
fonts.c 46KB
stm32f10x_adc.c 46KB
stm32f2xx_spi.c 45KB
stm32f0xx_adc.c 45KB
stm32f10x_i2c.c 45KB
stm32100e_eval_lcd.c 45KB
stm322xg_eval_lcd.c 45KB
stm324x7i_eval_lcd.c 44KB
stm324xg_eval_lcd.c 44KB
stm32f10x_can.c 44KB
stm32100e_eval_ioe.c 42KB
共 844 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9
资源评论
- qq_359480352018-12-18很好的 ,学习一下
- LOVEFOREVE2018-06-22很好的 ,学习一下
- johnny5_ye2018-03-31g跟官网版本一样,谢谢!
A锐捷无法认证
- 粉丝: 3
- 资源: 39
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功