C语言AES对称加密算法源码.doc

C语言AES对称加密算法源码

C语言AES对称加密算法源码 #include string.h #include stdio.h // AES only supports Nb=4 #define Nb 4 // number of columns in the State expanded key #define Nk 4 // number of columns in a key #define Nr 10 // number of rounds in encryption unsigned char Sbox[256] = { // forward s-box 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15, 0x04, 0xc7, 0x23, 0xc3, 0x1

文档评论(0)

1亿VIP精品文档

相关文档