基于J2ME的MD5算法类
l3 = HH(l3, l, l1, l2, al[4], 11L, 0x4bdecfa9L); l2 = HH(l2, l3, l, l1, al[7], 16L, 0xf6bb4b60L); l1 = HH(l1, l2, l3, l, al[10], 23L, 0xbebfbc70L); l = HH(l, l1, l2, l3, al[13], 4L, 0x289b7ec6L); l3 = HH(l3, l, l1, l2, al[0], 11L, 0xeaa127faL); l2 = HH(l2, l3, l, l1, al[3], 16L, 0xd4ef3085L); l1 = HH(l1, l2, l3, l, al[6], 23L, 0x4881d05L); l = HH(l, l1, l2, l3, al[9], 4L, 0xd9d4d039L); l3 = HH(l3, l, l1, l2, al[12], 11L, 0xe6db99e5L); l2 = HH(l2, l3, l, l1, al[15], 16L, 0x1fa27cf8L); l1 = HH(l1, l2, l3, l, al[2], 23L, 0xc4ac5665L); l = II(l, l1, l2, l3, al[0], 6L, 0xf4292244L); l3 = II(l3, l, l1, l2, al[7], 10L, 0x432aff97L); l2 = II(l2, l3, l, l1, al[14], 15L, 0xab9423a7L); l1 = II(l1, l2, l3, l, al[5], 21L, 0xfc93a039L); l = II(l, l1, l2, l3, al[12], 6L, 0x655b59c3L); l3 = II(l3, l, l1, l2, al[3], 10L, 0x8f0ccc92L); l2 = II(l2, l3, l, l1, al[10], 15L, 0xffeff47dL); l1 = II(l1, l2, l3, l, al[1], 21L, 0x85845dd1L); l = II(l, l1, l2, l3, al[8], 6L, 0x6fa87e4fL); l3 = II(l3, l, l1, l2, al[15], 10L, 0xfe2ce6e0L); l2 = II(l2, l3, l, l1, al[6], 15L, 0xa3014314L); l1 = II(l1, l2, l3, l, al[13], 21L, 0x4e0811a1L); l = II(l, l1, l2, l3, al[4], 6L, 0xf7537e82L); l3 = II(l3, l, l1, l2, al[11], 10L, 0xbd3af235L); l2 = II(l2, l3, l, l1, al[2], 15L, 0x2ad7d2bbL); l1 = II(l1, l2, l3, l, al[9], 21L, 0xeb86d391L); state[0] += l; state[1] += l1; state[2] += l2; state[3] += l3; } private void Encode(byte abyte0[], long al[], int i) {//转换函数,将al中long型的变量输出到byte型的数组abyte0中, //低位字节在前,高位字节在后; int j = 0; for(int k = 0; k < i; k += 4)本新闻共 6页,当前在第 5页 1 2 3 4 5 6 | |