示例#1
0
文件: NewCrypt.cs 项目: zixela/l2net
 public static bool verifyChecksum(byte[] raw)
 {
     return(NewCrypt.verifyChecksum(raw, 0, raw.Length));
 }
示例#2
0
文件: NewCrypt.cs 项目: zixela/l2net
 /**
  * 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
文件: NewCrypt.cs 项目: zixela/l2net
 public static void appendChecksum(byte[] raw)
 {
     NewCrypt.appendChecksum(raw, 0, raw.Length);
 }