Example #1
0
 public MemoryStream DecryptCopy(Connection connection, MemoryStream stream, int offset)
 {
     this.network_buffer.Position = 0L;
     this.network_buffer.SetLength(0L);
     this.network_buffer.Write(stream.GetBuffer(), 0, offset);
     CryptographyUtils.xor(this.game_version, stream, offset, this.network_buffer, offset);
     return(this.network_buffer);
 }
Example #2
0
 public void Decrypt(Connection connection, MemoryStream stream, int offset)
 {
     CryptographyUtils.xor(this.game_version, stream, offset, stream, offset);
 }