fast_aes_test.cpp
来自「AES128bit加密算法。在PDF文档中有详细算法描述。程序打印出的内容为验证」· C++ 代码 · 共 27 行
CPP
27 行
// AES.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "memory.h"
#include "stdio.h"
typedef unsigned char word8;
typedef unsigned int word32;
#define Nk 4
#define Nb 4
#define Nr 10
#include "S-Box.h"
#include "aes.h"
unsigned int State[4]={0x3243f6a8,0x885a308d,0x313198a2,0xe0370734};
int main(int argc, char* argv[])
{
unsigned int CipherKey[8]={0x2b7e1516,0x28aed2a6,0xabf71588,0x09cf4f3c};
QiuS_box();
AES_Enfun(State,CipherKey,1);
printf("\n\nok!\n");
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?