Here you can find the source of xorMV(byte[] i_Value)
public static byte[] xorMV(byte[] i_Value)
//package com.java2s; //License from project: Open Source License public class Main { public static byte[] xorMV(byte[] i_Value) { return xorMV(i_Value, 0, i_Value.length); }/*www . j a v a 2 s . com*/ public static byte[] xorMV(byte[] i_Value, int i_StartIndex, int i_Len) { byte[] v_Result = new byte[i_Value.length]; int v_MaxIndex = i_StartIndex + i_Len; for (int v_Index = 0; v_Index < i_Value.length; v_Index++) { if (i_StartIndex <= v_Index && v_Index < v_MaxIndex) { v_Result[v_Index] = (byte) (i_Value[v_Index] ^ Byte.MAX_VALUE); } else { v_Result[v_Index] = i_Value[v_Index]; } } return v_Result; } }