Exemple #1
0
        private void handleInit(ByteBuffer packet)
        {
            this.sessionId   = packet.ReadUInt32();
            this.protocolVer = packet.ReadUInt32();
            this.publicKey   = packet.ReadBytes(0x80);
            // 4x read D (GameGuard);
            for (int i = 0; i < 4; i++)
            {
                packet.ReadUInt32();
            }
            this.blowfishKey = packet.ReadBytes(0x10);

            // set new key in LoginCrypt
            crypt.setKey(this.blowfishKey);
        }
Exemple #2
0
        private void handleInit(ByteBuffer packet)
        {
            this.sessionId = packet.ReadUInt32();
            this.protocolVer = packet.ReadUInt32();
            this.publicKey = packet.ReadBytes(0x80);
            // 4x read D (GameGuard);
            for (int i = 0; i < 4; i++)
                packet.ReadUInt32();
            this.blowfishKey = packet.ReadBytes(0x10);

            // set new key in LoginCrypt
            crypt.setKey(this.blowfishKey);
        }