ECDiffieHellmanCng コンストラクター

定義

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

オーバーロード

名前 説明
ECDiffieHellmanCng()

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

ECDiffieHellmanCng(Int32)

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

ECDiffieHellmanCng(CngKey)

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

ECDiffieHellmanCng(ECCurve)

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

ECDiffieHellmanCng()

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

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

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

注釈

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

適用対象

ECDiffieHellmanCng(Int32)

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

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

public:
 ECDiffieHellmanCng(int keySize);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng(int keySize);
public ECDiffieHellmanCng(int keySize);
[System.Security.SecurityCritical]
public ECDiffieHellmanCng(int keySize);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : int -> System.Security.Cryptography.ECDiffieHellmanCng
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 は無効な長さを指定します。

このシステムでは、暗号化次世代 (CNG) クラスはサポートされていません。

注釈

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

適用対象

ECDiffieHellmanCng(CngKey)

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

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

public:
 ECDiffieHellmanCng(System::Security::Cryptography::CngKey ^ key);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDiffieHellmanCng(System.Security.Cryptography.CngKey key);
public ECDiffieHellmanCng(System.Security.Cryptography.CngKey key);
[System.Security.SecurityCritical]
public ECDiffieHellmanCng(System.Security.Cryptography.CngKey key);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDiffieHellmanCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDiffieHellmanCng
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 は、楕円曲線 Diffie-Hellman (ECDH) アルゴリズム グループを指定しません。

このシステムでは、暗号化次世代 (CNG) クラスはサポートされていません。

適用対象

ECDiffieHellmanCng(ECCurve)

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

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

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

パラメーター

curve
ECCurve

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

属性

例外

curve は検証しません。

注釈

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

適用対象