(long l)
| 85 | } |
| 86 | |
| 87 | private static byte[] long2bytes(long l) { |
| 88 | byte[] bytes = new byte[8]; |
| 89 | for (int i = 0; i < 8; i++) { |
| 90 | bytes[i] = (byte) (l >>> ((7 - i) * 8)); |
| 91 | } |
| 92 | return bytes; |
| 93 | } |
| 94 | |
| 95 | static byte[] hash(byte[] source) throws IOException { |
| 96 | byte[] m1 = padding(source); |