DSACng コンストラクター

定義

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

オーバーロード

DSACng()

ランダムな 2,048 ビット キーのペアで、DSACng クラスの新しいインスタンスを初期化します。

DSACng(Int32)

指定のサイズでランダムに生成されたキーで、DSACng クラスの新しいインスタンスを初期化します。

DSACng(CngKey)

指定したキーで、DSACng クラスの新しいインスタンスを初期化します。

DSACng()

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

ランダムな 2,048 ビット キーのペアで、DSACng クラスの新しいインスタンスを初期化します。

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

適用対象

DSACng(Int32)

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

指定のサイズでランダムに生成されたキーで、DSACng クラスの新しいインスタンスを初期化します。

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

パラメーター

keySize
Int32

生成するキーのサイズ (ビット単位)。

属性

例外

keySize が無効です。

注釈

有効なキー サイズの範囲は 512 ビットから 3,072 ビットで、64 ビットずつ増加します。 すべてのキーには、最小サイズの 2,048 ビットを使用することをお勧めします。

重要

DSA アルゴリズムの作成者は、そのサポートを取り消しました。 クラスではなく、 RSA クラスまたは クラスDSAECDsa使用することを検討してください。 レガシ アプリケーションとデータとの互換性のためにのみ使用 DSA します。

適用対象

DSACng(CngKey)

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

指定したキーで、DSACng クラスの新しいインスタンスを初期化します。

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

パラメーター

key
CngKey

DSA 操作に使用するキー。

属性

例外

key は有効な DSA キーではありません。

keynullです。

注釈

keyCngKey.AlgorithmGroup であるCngAlgorithmGroup.Dsa必要があります。

このコンストラクターは、キーのコピーを作成します。 が破棄された場合 key でも、DSA 内のこのキー オブジェクトのコピーは有効なままになります。

適用対象