这是一个正确的ripemd160核心功能吗? (在python中)

时间:2010-01-23 21:11:13

标签: python cryptography ripemd

  

可能重复:
  what is wrong with my ripemd160 python code?

假设其他所有内容(函数,常量等)都是正确的,这对于python来说是一个正确的majormd160主循环吗?

for j in range(80):

   T = (a+ ROL( (F(b, c, d, j) + X[r[j]] + k[j/16])%2**32,s[j])+e)%2**32
   a = e; e = d; d = ROL(c, 10); c = b; a = T

   # parallel round
   T = (aa+ ROL( (F(bb,cc,dd,79-j) + X[rr[j]] + kk[j/16] )%2**32,ss[j])+ee)%2**32
   aa = ee; ee = dd; dd = ROL(cc,10); cc = bb; aa = T

0 个答案:

没有答案