public static bool Decode(AESEngine aesDecrypt,N2HBinaryReader packet)
{
//var pos = packet.BaseStream.Position;
//var buffer = packet.ReadBytes((int) packet.BaseStream.GetAvaliableByteCounts());
// Decrypt
// packet.BaseStream.Position = pos;
aesDecrypt.Process(packet.BaseStream as MemoryStream);
//packet.BaseStream.Write(buffer,0,buffer.Length);
return ReadCRC(packet);
}
public static bool ReadCRC(N2HBinaryReader packet)