ECDsaCng コンストラクター

定義

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

オーバーロード

名前 説明
ECDsaCng()

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

ECDsaCng(Int32)

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

ECDsaCng(CngKey)

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

ECDsaCng(ECCurve)

指定した曲線上で公開キーと秘密キーのペアが生成される ECDsaCng クラスの新しいインスタンスを初期化します。

ECDsaCng()

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

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

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

例外

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

注釈

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

こちらもご覧ください

適用対象

ECDsaCng(Int32)

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

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

public:
 ECDsaCng(int keySize);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDsaCng(int keySize);
public ECDsaCng(int keySize);
[System.Security.SecurityCritical]
public ECDsaCng(int keySize);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDsaCng : int -> System.Security.Cryptography.ECDsaCng
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 ビットです。

属性

例外

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

keySize は無効な長さを指定します。

注釈

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

こちらもご覧ください

適用対象

ECDsaCng(CngKey)

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

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

public:
 ECDsaCng(System::Security::Cryptography::CngKey ^ key);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public ECDsaCng(System.Security.Cryptography.CngKey key);
public ECDsaCng(System.Security.Cryptography.CngKey key);
[System.Security.SecurityCritical]
public ECDsaCng(System.Security.Cryptography.CngKey key);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.ECDsaCng : System.Security.Cryptography.CngKey -> System.Security.Cryptography.ECDsaCng
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です。

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

適用対象

ECDsaCng(ECCurve)

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

指定した曲線上で公開キーと秘密キーのペアが生成される ECDsaCng クラスの新しいインスタンスを初期化します。

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

パラメーター

curve
ECCurve

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

属性

例外

curve は検証しません。

curvenullです。

に FriendlyName を持つ Oid が含まれていない場合は a0/&。

注釈

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

適用対象