Here you can find the source of xor(byte[] bytes, int offset, byte[] bytesToMix, int mixOffset, int len)
public static void xor(byte[] bytes, int offset, byte[] bytesToMix, int mixOffset, int len)
//package com.java2s; //License from project: Apache License public class Main { public static void xor(byte[] bytes, int offset, byte[] bytesToMix, int mixOffset, int len) { int bytesLength = offset + len; for (; offset < bytesLength; offset++) { bytes[offset] ^= bytesToMix[mixOffset++]; }/*from w w w . ja v a 2 s. c o m*/ } public static void xor(byte[] dest, byte[] bytesToMix) { assert dest.length == bytesToMix.length : "different lengths: " + dest.length + " != " + bytesToMix.length; xor(dest, 0, bytesToMix, 0, dest.length); } }