C语言MD5代码分析和总结.docxVIP

  • 12
  • 0
  • 约5.51千字
  • 约 4页
  • 2022-06-07 发布于浙江
  • 举报
C++MD5 代码 #includestdio.h #includestring.h #includestdlib.h #define F(x, y, z) (((x) (y)) | ((~x) (z))) #define G(x, y, z) (((x) (z)) | ((y) (~z))) #define H(x, y, z) ((x) ^ (y) ^ (z)) #define I(x, y, z) ((y) ^ ((x) | (~z))) #define RL(x, y) (((x) (y)) | ((x) (32 - (y)))) //x向左循环移y位 #define PP(x) (x24)|((x8)0xff0000)|((x8)0xff00)|(x24) //将x高低位互换,例如PP(aabbccdd)=ddccbbaa #define FF(a, b, c, d, x, s, ac) a = b + (RL((a + F(b,c,d) + x + ac),s)) #define GG(a, b, c, d, x, s, ac) a = b + (RL((a + G(b,c,d) + x + ac),s)) #define HH(a, b, c, d, x, s, ac) a = b + (RL((a + H(b,c,d) + x + ac),s)) #de

文档评论(0)

1亿VIP精品文档

相关文档