System.Security.Cryptography.ECDiffieHellmanCng
Provides a Cryptography Next Generation (CNG) implementation of the Elliptic Curve Diffie-Hellman (ECDH) algorithm. This class is used to perform cryptographic operations.
Gets or sets the hash algorithm to use when generating key material.
Gets or sets the Hash-based Message Authentication Code (HMAC) key to use when deriving key material.
Specifies the CngKey that is used by the current object for cryptographic operations.
Gets or sets the key derivation function for the ECDiffieHellmanCng class.
Gets or sets the label value that is used for key derivation.
Gets or sets a value that will be appended to the secret agreement when generating key material.
Gets or sets a value that will be added to the beginning of the secret agreement when deriving key material.
Gets or sets the seed value that will be used when deriving key material.
Gets a value that indicates whether the secret agreement is used as a Hash-based Message Authentication Code (HMAC) key to derive key material.
public ECDiffieHellmanCng()
Initializes a new instance of the ECDiffieHellmanCng class with a random key pair.
Initializes a new instance of the ECDiffieHellmanCng class with a random key pair, using the specified key size.
Initializes a new instance of the ECDiffieHellmanCng class by using the specified CngKey object.
Creates a new instance of the ECDiffieHellmanCng class whose public/private key pair is generated over the specified curve.
Derives the key material that is generated from the secret agreement between two parties, given a CngKey object that contains the second party's public key.
Gets a handle to the secret agreement generated between two parties, given a CngKey object that contains the second party's public key.
public SafeNCryptSecretHandle DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey otherPartyPublicKey)
Gets a handle to the secret agreement generated between two parties, given an ECDiffieHellmanPublicKey object that contains the second party's public key.
Deserializes the key information from an XML string by using the specified format.
Serializes the key information to an XML string by using the specified format.