资源简介
aes算法,vc6可直接运行,包含加密解密及中间各种参数生成的详细过程
代码片段和文件信息
///////////////////////////////
// http://mingcn.cnblogs.com //
// xelz CopyRight (c) 2010 //
///////////////////////////////
#include “stdafx.h“
#include “string.h“
#include “AES.h“
void print1(unsigned char state[][4]);
void print(unsigned char* state);
AES::AES(unsigned char* key)
{
unsigned char sBox[] =
{ /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
0x630x7c0x770x7b0xf20x6b0x6f0xc50x300x010x670x2b0xfe0xd70xab0x76 /*0*/
0xca0x820xc90x7d0xfa0x590x470xf00xad0xd40xa20xaf0x9c0xa40x720xc0 /*1*/
0xb70xfd0x930x260x360x3f0xf70xcc0x340xa50xe50xf10x710xd80x310x15 /*2*/
0x040xc70x230xc30x180x960x050x9a0x070x120x800xe20xeb0x270xb20x75 /*3*/
0x090x830x2c0x1a0x1b0x6e0x5a0xa00x520x3b0xd60xb30x290xe30x2f0x84 /*4*/
0x530xd10x000xed0x200xfc0xb10x5b0x6a0xcb0xbe0x390x4a0x4c0x580xcf /*5*/
0xd00xef0xaa0xfb0x430x4d0x330x850x450xf90x020x7f0x500x3c0x9f0xa8 /*6*/
0x510xa30x400x8f0x920x9d0x380xf50xbc0xb60xda0x210x100xff0xf30xd2 /*7*/
0xcd0x0c0x130xec0x5f0x970x440x170xc40xa70x7e0x3d0x640x5d0x190x73 /*8*/
0x600x810x4f0xdc0x220x2a0x900x880x460xee0xb80x140xde0x5e0x0b0xdb /*9*/
0xe00x320x3a0x0a0x490x060x240x5c0xc20xd30xac0x620x910x950xe40x79 /*a*/
0xe70xc80x370x6d0x8d0xd50x4e0xa90x6c0x560xf40xea0x650x7a0xae0x08 /*b*/
0xba0x780x250x2e0x1c0xa60xb40xc60xe80xdd0x740x1f0x4b0xbd0x8b0x8a /*c*/
0x700x3e0xb50x660x480x030xf60x0e0x610x350x570xb90x860xc10x1d0x9e /*d*/
0xe10xf80x980x110x690xd90x8e0x940x9b0x1e0x870xe90xce0x550x280xdf /*e*/
0x8c0xa10x890x0d0xbf0xe60x420x680x410x990x2d0x0f0xb00x540xbb0x16 /*f*/
};
unsigned char invsBox[256] =
{ /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
0x520x090x6a0xd50x300x360xa50x380xbf0x400xa30x9e0x810xf30xd70xfb /*0*/
0x7c0xe30x390x820x9b0x2f0xff0x870x340x8e0x430x440xc40xde0xe90xcb /*1*/
0x540x7b0x940x320xa60xc20x230x3d0xee0x4c0x950x0b0x420xfa0xc30x4e /*2*/
0x080x2e0xa10x660x280xd90x240xb20x760x5b0xa20x490x6d0x8b0xd10x25 /*3*/
0x720xf80xf60x640x860x680x980x160xd40xa40x5c0xcc0x5d0x650xb60x92 /*4*/
0x6c0x700x480x500xfd0xed0xb90xda0x5e0x150x460x570xa70x8d0x9d0x84 /*5*/
0x900xd80xab0x000x8c0xbc0xd30x0a0xf70xe40x580x050xb80xb30x450x06 /*6*/
0xd00x2c0x1e0x8f0xca0x3f0x0f0x020xc10xaf0xbd0x030x010x130x8a0x6b /*7*/
0x3a0x910x110x410x4f0x670xdc0xea0x970xf20xcf0xce0xf00xb40xe60x73 /*8*/
0x960xac0x740x220xe70xad0x350x850xe20xf90x370xe80x1c0x750xdf0x6e /*9*/
0x470xf10x1a0x710x1d0x290xc50x890x6f0xb70x620x0e0xaa0x180xbe0x1b /*a*/
0xfc
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 8335 2017-11-27 17:34 TestAESCipher\AES.cpp
文件 1337 2017-11-27 16:54 TestAESCipher\AES.h
文件 20667 2017-11-27 17:34 TestAESCipher\Debug\AES.obj
文件 0 2017-11-27 17:34 TestAESCipher\Debug\AES.sbr
文件 2364 2010-10-30 10:20 TestAESCipher\Debug\StdAfx.obj
文件 4159 2010-10-30 10:20 TestAESCipher\Debug\StdAfx.sbr
文件 91136 2017-11-27 17:41 TestAESCipher\Debug\TestAESCipher.bsc
文件 192596 2017-11-27 17:41 TestAESCipher\Debug\TestAESCipher.exe
文件 214500 2017-11-27 17:41 TestAESCipher\Debug\TestAESCipher.ilk
文件 8075 2017-11-27 17:41 TestAESCipher\Debug\TestAESCipher.obj
文件 203728 2010-10-30 10:20 TestAESCipher\Debug\TestAESCipher.pch
文件 459776 2017-11-27 17:41 TestAESCipher\Debug\TestAESCipher.pdb
文件 0 2017-11-27 17:41 TestAESCipher\Debug\TestAESCipher.sbr
文件 50176 2017-11-27 17:41 TestAESCipher\Debug\vc60.idb
文件 61440 2017-11-27 17:41 TestAESCipher\Debug\vc60.pdb
文件 1250 2010-10-30 08:59 TestAESCipher\ReadMe.txt
文件 300 2010-10-30 08:59 TestAESCipher\StdAfx.cpp
文件 769 2010-10-30 08:59 TestAESCipher\StdAfx.h
文件 2208 2017-11-27 17:41 TestAESCipher\TestAESCipher.cpp
文件 4736 2010-10-30 11:19 TestAESCipher\TestAESCipher.dsp
文件 551 2010-10-30 09:54 TestAESCipher\TestAESCipher.dsw
文件 66560 2017-11-27 20:56 TestAESCipher\TestAESCipher.ncb
文件 53760 2017-11-27 20:56 TestAESCipher\TestAESCipher.opt
文件 1168 2017-11-27 17:41 TestAESCipher\TestAESCipher.plg
目录 0 2017-11-27 17:41 TestAESCipher\Debug
目录 0 2017-11-27 20:56 TestAESCipher
----------- --------- ---------- ----- ----
1449591 26
相关资源
- AES 算法实现(linux) 可移植
- CMAES算法C++
- AesForC.rar
- AES加密算法C++语言实现
- AES对称加密解密文件
- AES加密可加密文件
- AES5种加密模式源码C语言
- c语言RSA算法 这是一个完整的rsa算法
- AES密码学课程设计带报告
- AES加密算法(C++实现)
- AES 加密算法接口及演示程序
- AES加密算法c语言实现代码
- AES128/192/256 C语言实现AES加密/解密实测
- AES加密算法C语言实现,有测试代码,
- 常用加密算法AES、RSA、DES、MD5、TEA、
- AES 128位加解密C++源码(加盐)
- AES详细源码C语言实现带注释
- AES算法的C语言版本
- AES/ECB/PKCS5Padding C++实现
- C语言环境下的AES加密算法,支持128位
- AES快速实现,加密速度大约1.4G/s,不
- AES多种加密解密方式C语言方式实现
- aes密钥扩展C语言实现
- C语言 3DES、AES、RC6、TEA、RSA、MD5、S
- C语言实现的AES加密解密
- AES、DES加密算法C语言源码
- AES 加解密c++
- AES s盒生成代码
- AES加密解密系统 VC++6.0 实现
- AES密码算法C语言实现
评论
共有 条评论