Here you can find the source of xor(byte[] aBuffer, int aOffset, int aLength, byte[] aMask, int aMaskOffset)
public static void xor(byte[] aBuffer, int aOffset, int aLength, byte[] aMask, int aMaskOffset)
//package com.java2s; //License from project: Open Source License public class Main { public static void xor(byte[] aBuffer, int aOffset, int aLength, byte[] aMask, int aMaskOffset) { for (int i = 0; i < aLength; i++) { aBuffer[aOffset + i] ^= aMask[aMaskOffset + i]; }/*from ww w . jav a 2s . co m*/ } }