ECDiffieHellmanCng.DeriveKeyMaterial Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Derives the key material that is generated from the secret agreement between two parties.

Namespace:   System.Security.Cryptography
Assembly:  System.Core (in System.Core.dll)

NameDescription
System_CAPS_pubmethodDeriveKeyMaterial(CngKey)

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.

System_CAPS_pubmethodDeriveKeyMaterial(ECDiffieHellmanPublicKey)

Derives the key material that is generated from the secret agreement between two parties, given an ECDiffieHellmanPublicKey object that contains the second party's public key. (Overrides ECDiffieHellman.DeriveKeyMaterial(ECDiffieHellmanPublicKey).)

The Elliptic Curve Diffie-Hellman (ECDH) algorithm accepts the private key and the other party’s public key as input, and produces the secret agreement as output. The key derivation function (KDF) then takes the secret agreement and produces the key material as output.

Return to top
Show: