public function __construct(GameClient $client, ClientMessage $packet)
 {
     $client->generateSharedKey(GameServer::getRSA()->verify($packet->readString()));
     $client->sendResponse(new SecretKeyMessageComposer(GameServer::getRSA()->sign($client->getPublicKey())));
     $client->initRC4($client->getSharedKey(true));
 }
 public function __construct(GameClient $client, ClientMessage $packet)
 {
     $client->initDH();
     $client->sendResponse(new InitCryptoMessageComposer(GameServer::getRSA()->sign($client->getPrime()), GameServer::getRSA()->sign($client->getGenerator())));
 }