Here you can find the source of XORInto(byte[] dest, byte[] src)
Parameter | Description |
---|---|
dest | destination array |
src | source array |
public static void XORInto(byte[] dest, byte[] src)
//package com.java2s; //License from project: Open Source License public class Main { /** Utility function to XOR two byte arrays * @param dest destination array/*from w ww .j a v a 2 s .c om*/ * @param src source array */ public static void XORInto(byte[] dest, byte[] src) { for (int i = 0; i < dest.length; i++) { dest[i] ^= src[i]; } } }