Пример #1
0
 public RSACryptoServiceProvider getPublicKey()
 {
     return(RSAEncryptionUtil.toPublicKey(publicKey));
 }
Пример #2
0
 public KeyResponsePacket(AesCryptoServiceProvider secretKey, RSACryptoServiceProvider publicKey)
 {
     this.secretKeyEncrypted = RSAEncryptionUtil.encryptKey(secretKey, publicKey).ToList();
 }
Пример #3
0
 public InitialHandshakePacket(RSACryptoServiceProvider publicKey, VersionData versionData)
 {
     this.publicKey   = RSAEncryptionUtil.toBase64(publicKey);
     this.versionData = new VersionDataString(version: versionData.Version.ToString(),
                                              minVersion: versionData.MinVersion.ToString());
 }