Examples of InitLS


Examples of com.l2jfrozen.gameserver.network.loginserverpackets.InitLS

          int packetType = decrypt[0] & 0xff;
          switch(packetType)
          {
            case 00:
              InitLS init = new InitLS(decrypt);
              if(Config.DEBUG)
              {
                _log.info("Init received");
              }
              if(init.getRevision() != REVISION)
              {
                //TODO: revision mismatch
                _log.warning("/!\\ Revision mismatch between LS and GS /!\\");
                break;
              }
              try
              {
                KeyFactory kfac = KeyFactory.getInstance("RSA");
                BigInteger modulus = new BigInteger(init.getRSAKey());
                RSAPublicKeySpec kspec1 = new RSAPublicKeySpec(modulus, RSAKeyGenParameterSpec.F4);
                _publicKey = (RSAPublicKey) kfac.generatePublic(kspec1);
                if(Config.DEBUG)
                {
                  _log.info("RSA key set up");
View Full Code Here

Examples of com.l2jfrozen.loginserver.network.loginserverpackets.InitLS

      forceClose(LoginServerFail.REASON_IP_BANNED);
      // ensure no further processing for this connection
      return;
    }

    InitLS startPacket = new InitLS(_publicKey.getModulus().toByteArray());
    try
    {
      sendPacket(startPacket);

      int lengthHi = 0;
View Full Code Here

Examples of net.sf.l2j.gameserver.loginserverpackets.InitLS

          int packetType = decrypt[0]&0xff;
          switch (packetType)
          {
          case 00:
            InitLS init = new InitLS(decrypt);
            if (Config.DEBUG) _log.info("Init received");
            if(init.getRevision() != REVISION)
            {
              //TODO: revision mismatch
              _log.warning("/!\\ Revision mismatch between LS and GS /!\\");
              break;
            }
            try
            {
              KeyFactory kfac = KeyFactory.getInstance("RSA");
              BigInteger modulus = new BigInteger(init.getRSAKey());
              RSAPublicKeySpec kspec1 = new RSAPublicKeySpec(modulus, RSAKeyGenParameterSpec.F4);
              _publicKey = (RSAPublicKey)kfac.generatePublic(kspec1);
              if (Config.DEBUG) _log.info("RSA key set up");
            }
View Full Code Here

Examples of net.sf.l2j.loginserver.loginserverpackets.InitLS

      forceClose(LoginServerFail.REASON_IP_BANNED);
      // ensure no further processing for this connection
      return;
    }

    InitLS startPacket = new InitLS(_publicKey.getModulus().toByteArray());
    try
    {
      sendPacket(startPacket);

      int lengthHi = 0;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.