编程语言
首页 > 编程语言> > 逆向常见加密算法值BlowFish算法

逆向常见加密算法值BlowFish算法

作者:互联网

伪c代码简单记录

伪c代码实现BlowFish加密
 sub_4012F0(&v22, &v5, &v6);
    ^
    |
  do
  {
    v7 = *v6 ^ v3;
    v3 = v4 ^ sub_401280((int)v5, v7);
    --v6;
    v8 = v11 == 1;
    v4 = v7;
    --v11;
  }
  while ( !v8 );
  v9 = v3 ^ v5[1];
  result = a2;
  *a2 = v7 ^ *v5;
  *a3 = v9;
  sub_401280->      return *(_DWORD *)(a1 + 4 * (unsigned __int8)a2 + 3144)
                     + (*(_DWORD *)(a1 + 4 * BYTE1(a2) + 2120) ^ (*(_DWORD *)(a1 + 4 * ((a2 >> 16) & 0xFF) + 1096)
                                                  + *(_DWORD *)(a1 + 4 * (a2 >> 24) + 72)));

标签:逆向,BlowFish,sub,a1,a2,v5,v7,DWORD,加密算法
来源: https://www.cnblogs.com/kk328/p/10982555.html