aes加密算法自己调试过了
#include #include //xtime用于混合列变换 #definextime(x)((x7)&1)*0x1b)) //密钥的长度为128bit,轮数Nr为10 intNk=4; intNr=10; charRoundKey[240];//轮密钥 charKey[32];//主密钥 //S-盒 intsbox[256]= { 0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x01,0x67,0x2b,0xfe,0xd7,0xab,0x76, 0xc