摘要:
1 #include <stdio.h> 2 3 #define w 32 /* word为32bits */ 4 #define r 20 //加密轮数 5 6 #define P32 0xB7E15163 /* 定义两个常量,用于子密钥生成 */ 7 #define Q32 0x9E3779B9 8 12 #define bytes (w / 8) /* 定义字节*/ 13 #define c ((b + bytes - 1) / bytes) /* 密钥字数 */ 1... 阅读全文