public void ImportParameters(ECDiffieHellmanPublicKey otherPartyPublicKey) { var opp = otherPartyPublicKey.ToByteArray(); q = ECPoint.FromBlob(opp); }
/// <summary> /// Derives bytes that can be used as a key, given another party's public key. /// </summary> /// /// <returns> /// The key material from the key exchange with the other party’s public key. /// </returns> /// <param name="otherPartyPublicKey">The other party's public key.</param> public abstract byte[] DeriveKeyMaterial(ECDiffieHellmanPublicKey otherPartyPublicKey);