Share via


DeriveKeyMaterial Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

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

Syntax

'Declaration
Public Function DeriveKeyMaterial ( _
    otherPartyPublicKey As Byte() _
) As CryptoKey
public CryptoKey DeriveKeyMaterial(
    byte[] otherPartyPublicKey
)
public:
CryptoKey^ DeriveKeyMaterial(
    array<unsigned char>^ otherPartyPublicKey
)
member DeriveKeyMaterial : 
        otherPartyPublicKey:byte[] -> CryptoKey 
public function DeriveKeyMaterial(
    otherPartyPublicKey : byte[]
) : CryptoKey

Parameters

  • otherPartyPublicKey
    Type: array<System. . :: . .Byte> [] () [] []
    A byte array that contains the public part of the Elliptic Curve Diffie-Hellman key from the other party in the key exchange.

Return Value

Type: System.Security.Cryptography. . :: . .CryptoKey
A byte array that contains the key material.

.NET Framework Security

See Also

Reference

ECDiffieHellmanCryptoServiceProvider Class

System.Security.Cryptography Namespace