public static bool verifyChecksum(byte[] raw) { return(NewCrypt.verifyChecksum(raw, 0, raw.Length)); }
/** * Packet is first XOR encoded with <code>key</code> * Then, the last 4 bytes are overwritten with the the XOR "key". * Thus this assume that there is enough room for the key to fit without overwriting data. * @param raw The raw bytes to be encrypted * @param key The 4 bytes (int) XOR key */ public static void encXORPass(byte[] raw, int key) { NewCrypt.encXORPass(raw, 0, raw.Length, key); }
public static void appendChecksum(byte[] raw) { NewCrypt.appendChecksum(raw, 0, raw.Length); }