public void OnSendKey(SagaGateway.Packets.Login.Get.SendKey p) { this.netIO.ClientKey = p.GetKey(); byte[] tempServerKey = Encryption.GenerateKey(); byte[] expandedServerKey = Encryption.GenerateDecExpKey(tempServerKey); SagaLib.Packets.Server.SendKey sendPacket = new SagaLib.Packets.Server.SendKey(); sendPacket.SetKey(expandedServerKey); sendPacket.SetCollumns(4); sendPacket.SetRounds(10); sendPacket.SetDirection(2); this.netIO.SendPacket(sendPacket, this.SessionID); this.netIO.ServerKey = tempServerKey; }
public void OnSendKey(SagaGateway.Packets.Login.Get.SendKey p) { this.netIO.ClientKey = p.GetKey(); this.Client.OnLoginSendKey(); }