Here you can find the source of xor(byte[] block, byte[] val)
static void xor(byte[] block, byte[] val)
//package com.java2s; //License from project: Open Source License public class Main { static void xor(byte[] block, byte[] val) { for (int i = 15; i >= 0; --i) { block[i] ^= val[i]; }// ww w .j a v a 2 s.co m } static void xor(byte[] block, byte[] val, int off, int len) { while (len-- > 0) { block[len] ^= val[off + len]; } } static void xor(byte[] block, byte[] val, byte[] output) { for (int i = 15; i >= 0; --i) { output[i] = (byte) (block[i] ^ val[i]); } } static void xor(int[] block, int[] val) { for (int i = 3; i >= 0; --i) { block[i] ^= val[i]; } } static void xor(int[] block, int[] val, int[] output) { for (int i = 3; i >= 0; --i) { output[i] = block[i] ^ val[i]; } } }