Here you can find the source of xor(byte[] firstBytes, int firstOffset, byte[] secondBytes, int secondOffset, byte[] outBytes, int outOffset, int size)
public static void xor(byte[] firstBytes, int firstOffset, byte[] secondBytes, int secondOffset, byte[] outBytes, int outOffset, int size)
//package com.java2s; //License from project: Open Source License public class Main { public static void xor(byte[] firstBytes, int firstOffset, byte[] secondBytes, int secondOffset, byte[] outBytes, int outOffset, int size) { for (int i = 0; i < size; i++) { outBytes[outOffset + i] = (byte) (firstBytes[firstOffset + i] ^ secondBytes[secondOffset + i]); }/* w ww. j a v a 2s .co m*/ } }