ECDiffieHellmanCng コンストラクター

定義

ECDiffieHellmanCng クラスの新しいインスタンスを初期化します。

オーバーロード

ECDiffieHellmanCng()

ランダムなキーのペアで、ECDiffieHellmanCng クラスの新しいインスタンスを初期化します。

ECDiffieHellmanCng(Int32)

指定されたキー サイズを使用して、ランダムなキー ペアで、ECDiffieHellmanCng クラスの新しいインスタンスを初期化します。

ECDiffieHellmanCng(CngKey)

指定した CngKey オブジェクトを使用して、ECDiffieHellmanCng クラスの新しいインスタンスを初期化します。

ECDiffieHellmanCng(ECCurve)

指定した曲線に対して生成された公開/秘密キー ペアの ECDiffieHellmanCng クラスの新しいインスタンスを作成します。

ECDiffieHellmanCng()

ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs

ランダムなキーのペアで、ECDiffieHellmanCng クラスの新しいインスタンスを初期化します。

public:
 ECDiffieHellmanCng();
public ECDiffieHellmanCng ();
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng ();
Public Sub New ()
属性

注釈

ランダム キー ペアの既定の公開キーの長さは 521 ビットです。

適用対象

ECDiffieHellmanCng(Int32)

ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs

指定されたキー サイズを使用して、ランダムなキー ペアで、ECDiffieHellmanCng クラスの新しいインスタンスを初期化します。

public:
 ECDiffieHellmanCng(int keySize);
public ECDiffieHellmanCng (int keySize);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng (int keySize);
[System.Security.SecurityCritical]
public ECDiffieHellmanCng (int keySize);
new System.Security.Cryptography.ECDiffieHellmanCng : int -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : int -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Security.SecurityCritical>]
new System.Security.Cryptography.ECDiffieHellmanCng : int -> System.Security.Cryptography.ECDiffieHellmanCng
Public Sub New (keySize As Integer)

パラメーター

keySize
Int32

キーのサイズです。 有効なキー サイズは、256 ビット、384 ビット、521 ビットです。

属性

例外

keySize に指定された長さが無効です。

Cryptography Next Generation (CNG) クラスは、このシステムではサポートされていません。

注釈

ランダム キーペアには、 パラメーターで定義された公開キーの長さがあります keySize

適用対象

ECDiffieHellmanCng(CngKey)

ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs

指定した CngKey オブジェクトを使用して、ECDiffieHellmanCng クラスの新しいインスタンスを初期化します。

public:
 ECDiffieHellmanCng(System::Security::Cryptography::CngKey ^ key);
public ECDiffieHellmanCng (System.Security.Cryptography.CngKey key);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng (System.Security.Cryptography.CngKey key);
[System.Security.SecurityCritical]
public ECDiffieHellmanCng (System.Security.Cryptography.CngKey key);
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Security.SecurityCritical>]
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDiffieHellmanCng
Public Sub New (key As CngKey)

パラメーター

key
CngKey

現在のオブジェクトが実行する暗号化操作への入力として使用するキー。

属性

例外

keynullです。

key に、ECDH アルゴリズム グループが指定されていません。

Cryptography Next Generation (CNG) クラスは、このシステムではサポートされていません。

適用対象

ECDiffieHellmanCng(ECCurve)

ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs

指定した曲線に対して生成された公開/秘密キー ペアの ECDiffieHellmanCng クラスの新しいインスタンスを作成します。

public:
 ECDiffieHellmanCng(System::Security::Cryptography::ECCurve curve);
public ECDiffieHellmanCng (System.Security.Cryptography.ECCurve curve);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng (System.Security.Cryptography.ECCurve curve);
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanCng
Public Sub New (curve As ECCurve)

パラメーター

curve
ECCurve

公開/秘密キー ペアを生成するために使用される曲線。

属性

例外

curve は検証されません。

注釈

curveメソッドに渡される場合は、 を検証し (つまり、 をECCurve.Validate返すtrue必要があります)、名前付きまたは明示的な素数である必要があります。

適用対象