Ejemplo n.º 1
0
 public static bool verifyChecksum(byte[] raw)
 {
     return(NewCrypt.verifyChecksum(raw, 0, raw.Length));
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
 public static void appendChecksum(byte[] raw)
 {
     NewCrypt.appendChecksum(raw, 0, raw.Length);
 }