コード例 #1
0
 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");
 }
コード例 #2
0
 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");
 }