Ejemplo n.º 1
0
        public void ImportParameters(ECDiffieHellmanPublicKey otherPartyPublicKey)
        {
            var opp = otherPartyPublicKey.ToByteArray();

            q = ECPoint.FromBlob(opp);
        }
Ejemplo n.º 2
0
 /// <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);