public Client(Server parent,
               TcpClient client)
 {
     this.server = parent;
     this.client = client;
     this.cngECC = new ECDiffieHellmanCng(parent.GetKey());
     (new System.Random()).NextBytes(this.rsaSecretKey);
     this.cipher = CipherUtilities.GetCipher("AES/CTR/NoPadding");
 }
 public Client(Server parent,
               TcpClient client) {
     this.server = parent;
     this.client = client;
     this.cngECC = new ECDiffieHellmanCng(parent.GetKey());
     (new System.Random()).NextBytes(this.rsaSecretKey);
     this.cipher = CipherUtilities.GetCipher("AES/CTR/NoPadding");
 }