ECDsaCng コンストラクター

定義

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

オーバーロード

ECDsaCng()

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

ECDsaCng(Int32)

指定したターゲット キー サイズを使用して、ECDsaCng クラスの新しいインスタンスを初期化します。

ECDsaCng(CngKey)

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

ECDsaCng(ECCurve)

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

ECDsaCng()

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

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

例外

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

注釈

このコンストラクターは、新しい公開/秘密キーペアをすぐに生成しません。 このコンストラクターは、プロパティを KeySize 521 に設定し、キーが必要な場合は、保存されたサイズを使用してターゲット 曲線を識別します。 メソッドまたはその他のキー インポート メソッドを介してキーが ImportParameters 読み込まれる場合、このコンストラクターのキー サイズには意味がありません。

こちらもご覧ください

適用対象

ECDsaCng(Int32)

指定したターゲット キー サイズを使用して、ECDsaCng クラスの新しいインスタンスを初期化します。

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

パラメーター

keySize
Int32

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

属性

例外

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

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

注釈

このコンストラクターは、新しい公開/秘密キーペアをすぐに生成しません。 このコンストラクターは、プロパティを KeySize 指定された値に設定し、キーが必要な場合は、保存されたサイズを使用してターゲット 曲線を識別します。 メソッドまたはその他のキー インポート メソッドを介してキーが ImportParameters 読み込まれる場合、このコンストラクターのキー サイズには意味がありません。

こちらもご覧ください

適用対象

ECDsaCng(CngKey)

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

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

パラメーター

key
CngKey

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

属性

例外

key は楕円曲線デジタル署名アルゴリズム (ECDSA) グループを指定しません。

keynullです。

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

適用対象

ECDsaCng(ECCurve)

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

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

パラメーター

curve
ECCurve

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

属性

例外

curve は検証されません。

curvenullです。

curve に FriendlyName を持つ Oid が含まれない場合。

注釈

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

適用対象