(long num)
| 13 | } |
| 14 | |
| 15 | public static byte[] longToBytes(long num) { |
| 16 | byte[] byteNum = new byte[8]; |
| 17 | for (int ix = 0; ix < 8; ++ix) { |
| 18 | int offset = 64 - (ix + 1) * 8; |
| 19 | byteNum[ix] = (byte) ((num >> offset) & 0xff); |
| 20 | } |
| 21 | return byteNum; |
| 22 | } |
| 23 | |
| 24 | public static boolean Xor_Empty(byte[] xor) { |
| 25 | for (int i = 0; i < xor.length; i++) { |