Here you can find the source of xorBlock(byte[] a, int aOff, byte[] b, int bOff, byte[] dst, int dstOff, int len)
public static void xorBlock(byte[] a, int aOff, byte[] b, int bOff, byte[] dst, int dstOff, int len)
//package com.java2s; public class Main { public static void xorBlock(byte[] a, int aOff, byte[] b, int bOff, byte[] dst, int dstOff, int len) { for (int i = 0; i < len; ++i) dst[dstOff + i] = (byte) (a[aOff + i] ^ b[bOff + i]); }/* w ww.j a v a 2 s . c o m*/ public static void xorBlock(byte[] a, byte[] b, byte[] dst) { xorBlock(a, 0, b, 0, dst, 0, a.length); } }