public static byte[] ComputeSharedKey(DHPrivateKey privateKey, DHPublicKey publicKey) { DiffieHellman dh = new DiffieHellmanManaged(privateKey.P, privateKey.G, privateKey.X); return(dh.DecryptKeyExchange(publicKey.KeyExchangeData)); }
public DHKeyPair(DHPrivateKey privateKey, DHPublicKey publicKey) { this._privateKey = privateKey; this._publicKey = publicKey; }
public static byte[] ComputeSharedKey(DHPrivateKey privateKey, DHPublicKey publicKey) { DiffieHellman dh = new DiffieHellmanManaged(privateKey.P, privateKey.G, privateKey.X); return dh.DecryptKeyExchange(publicKey.KeyExchangeData); }