Пример #1
0
 public static void appendChecksum(byte[] raw) {
   NewCrypt.appendChecksum(raw, 0, raw.length);
 }
Пример #2
0
 /**
  * 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);
 }
Пример #3
0
 public static boolean verifyChecksum(byte[] raw) {
   return NewCrypt.verifyChecksum(raw, 0, raw.length);
 }