资源简介
AES128 C语言实现源码及应用例程,可用于通信等场合数据加密
代码片段和文件信息
/* --COPYRIGHT--BSD
* Copyright (c) 2011 Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms with or without
* modification are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
* AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL
* EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY
* WHETHER IN CONTRACT STRICT LIABILITY OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* --/COPYRIGHT--*/
#include
#include “TI_aes_128.h“
int main( void )
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
unsigned char state[] = {0x00 0x11 0x22 0x33 0x44 0x55 0x66 0x77
0x88 0x99 0xaa 0xbb 0xcc 0xdd 0xee 0xff};
//unsigned char ciphertext[] = {0x69 0xc4 0xe0 0xd8 0x6a 0x7b 0x04 0x30
// 0xd8 0xcd 0xb7 0x80 0x70 0xb4 0xc5 0x5a};
unsigned char key1[] = {0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07
0x08 0x09 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f};
unsigned char key2[] = {0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07
0x08 0x09 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f};
aes_enc_dec(statekey10);
aes_enc_dec(statekey21);
return 0;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 20832 2011-12-01 10:01 AES_128\AES_128_Manifest.html
文件 2485 2011-12-01 09:58 AES_128\main_aes_128.c
文件 2445 2011-12-01 09:58 AES_128\main_aes_128_encr_only.c
文件 404 2011-11-23 11:35 AES_128\README.txt
文件 9505 2011-12-01 09:58 AES_128\TI_aes_128.c
文件 1884 2011-12-01 09:58 AES_128\TI_aes_128.h
文件 5645 2011-12-01 09:58 AES_128\TI_aes_128_encr_only.c
文件 1875 2011-12-01 09:58 AES_128\TI_aes_128_encr_only.h
目录 0 2011-12-01 09:59 AES_128\
相关资源
- C++编写一个计算器,实现加减乘除,
- c语言实现 FCFS和SJF调度算法
- 基于C++的内存池的实现
- 马踏棋盘C语言源代码
- 快速傅立叶变换(FFT) C,C#源码
- 二叉树已知后序和中序遍历求前序遍
- 动态添加、删除树形控件的节点,获
- mfc+opengl离散点绘制曲面
- C语言编写简单聊天室
- activemq-cpp开发手册.pdf
- 简易计算器基于对话框VC6.0
- rs485通讯C++
- erf()函数C语言代码
- C++知识体系图解超详细
- C语言课程设计报告-长整数四则运算
- 数据结构课程设计 通讯录的制作
- C++课件+STL
- STC15的modbus程序
- 作业调度算法c语言版
- MFC 实现读取文件中的数字,并求和
- C++哈夫曼编码与译码课程设计实现源
- C++ builder 网络传输程序含服务器和客
- 数据结构课程设计——族谱管理系统
- C++矩阵的关系判断
- tftp_vs2010.rar
- 中缀表达式求值(C++ 含合法性检查,
- C语言中的无穷积分算法,很好用的,
- C++项目实践
- 原创modbus 协议c实现 C 语言 实现功能
- opencv提取图片中人轮廓
评论
共有 条评论