This documentation is archived and is not being maintained.

ECDiffieHellmanCng Constructor

Initializes a new instance of the ECDiffieHellmanCng class with a random key pair.

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

public ECDiffieHellmanCng()

The random key pair has a default public key length of 521 bits.

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Show: