DSAOpenSsl コンストラクター

定義

オーバーロード

DSAOpenSsl()

2,048 ビットの既定のキー サイズを使用して、DSAOpenSsl クラスの新しいインスタンスを初期化します。

DSAOpenSsl(Int32)

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

DSAOpenSsl(IntPtr)

として表される既存の OpenSSL キーから、 クラスの DSAOpenSsl 新しいインスタンスを DSA*初期化します。

DSAOpenSsl(DSAParameters)

DSAOpenSsl クラスの新しいインスタンスを初期化し、既存のキーからパラメーターをインポートします。

DSAOpenSsl(SafeEvpPKeyHandle)

として表される既存の OpenSSL キーから、 クラスの DSAOpenSsl 新しいインスタンスを EVP_PKEY*初期化します。

DSAOpenSsl()

ソース:
DSAOpenSsl.cs
ソース:
DSAOpenSsl.cs
ソース:
DSAOpenSsl.cs

2,048 ビットの既定のキー サイズを使用して、DSAOpenSsl クラスの新しいインスタンスを初期化します。

public:
 DSAOpenSsl();
public DSAOpenSsl ();
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public DSAOpenSsl ();
Public Sub New ()
属性

注釈

このコンストラクターは、新しい DSA 公開/秘密キーペアをすぐに生成するのではなく、必要なときにキーを生成するために使用されるサイズを設定するだけです。 メソッドまたは他のキー インポート メソッドを ImportParameters 介してキーが読み込まれる場合、このコンストラクターのキー サイズには意味がありません。

こちらもご覧ください

適用対象

DSAOpenSsl(Int32)

ソース:
DSAOpenSsl.cs
ソース:
DSAOpenSsl.cs
ソース:
DSAOpenSsl.cs

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

public:
 DSAOpenSsl(int keySize);
public DSAOpenSsl (int keySize);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public DSAOpenSsl (int keySize);
new System.Security.Cryptography.DSAOpenSsl : int -> System.Security.Cryptography.DSAOpenSsl
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.DSAOpenSsl : int -> System.Security.Cryptography.DSAOpenSsl
Public Sub New (keySize As Integer)

パラメーター

keySize
Int32

生成するキーのサイズ (キーが必要な場合)。

属性

例外

この実装では、keySize 値はサポートされていません。

注釈

このコンストラクターは、新しい DSA 公開/秘密キーペアをすぐに生成するのではなく、必要なときにキーを生成するために使用されるサイズを設定するだけです。 メソッドまたは他のキー インポート メソッドを ImportParameters 介して key が読み込まれる場合、 keySize このコンストラクターに提供される は意味がありません。

こちらもご覧ください

適用対象

DSAOpenSsl(IntPtr)

ソース:
DSAOpenSsl.cs
ソース:
DSAOpenSsl.cs
ソース:
DSAOpenSsl.cs

として表される既存の OpenSSL キーから、 クラスの DSAOpenSsl 新しいインスタンスを DSA*初期化します。

public:
 DSAOpenSsl(IntPtr handle);
public DSAOpenSsl (IntPtr handle);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public DSAOpenSsl (IntPtr handle);
new System.Security.Cryptography.DSAOpenSsl : nativeint -> System.Security.Cryptography.DSAOpenSsl
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.DSAOpenSsl : nativeint -> System.Security.Cryptography.DSAOpenSsl
Public Sub New (handle As IntPtr)

パラメーター

handle
IntPtr

nativeint

キーとして使用する OpenSSL DSA* 値。

属性

例外

handleZeroです。

handle は有効な DSA* ではありません。

注釈

重要

OpenSSL では、同じプロセス内で読み込まれる複数のライブラリ バージョンがサポートされています。 このコンストラクターを呼び出す前に、ポインター値がこのクラスで使用されているのと同じバージョンの OpenSSL から取得されていることを確認します。 詳細については、「OpenSslVersion」を参照してください。

こちらもご覧ください

適用対象

DSAOpenSsl(DSAParameters)

ソース:
DSAOpenSsl.cs
ソース:
DSAOpenSsl.cs
ソース:
DSAOpenSsl.cs

DSAOpenSsl クラスの新しいインスタンスを初期化し、既存のキーからパラメーターをインポートします。

public:
 DSAOpenSsl(System::Security::Cryptography::DSAParameters parameters);
public DSAOpenSsl (System.Security.Cryptography.DSAParameters parameters);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public DSAOpenSsl (System.Security.Cryptography.DSAParameters parameters);
new System.Security.Cryptography.DSAOpenSsl : System.Security.Cryptography.DSAParameters -> System.Security.Cryptography.DSAOpenSsl
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.DSAOpenSsl : System.Security.Cryptography.DSAParameters -> System.Security.Cryptography.DSAOpenSsl
Public Sub New (parameters As DSAParameters)

パラメーター

parameters
DSAParameters

インポートするキーのパラメーター。

属性

例外

parameters に必須フィールドがありません。

または

parameters に、有効なキーの長さに一貫性がないフィールドがあります。

parameters が、有効な DSA キー パラメーター セットを表していません。

こちらもご覧ください

適用対象

DSAOpenSsl(SafeEvpPKeyHandle)

ソース:
DSAOpenSsl.cs
ソース:
DSAOpenSsl.cs
ソース:
DSAOpenSsl.cs

として表される既存の OpenSSL キーから、 クラスの DSAOpenSsl 新しいインスタンスを EVP_PKEY*初期化します。

public:
 DSAOpenSsl(System::Security::Cryptography::SafeEvpPKeyHandle ^ pkeyHandle);
public DSAOpenSsl (System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public DSAOpenSsl (System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
new System.Security.Cryptography.DSAOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.DSAOpenSsl
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
new System.Security.Cryptography.DSAOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.DSAOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)

パラメーター

pkeyHandle
SafeEvpPKeyHandle

キーとして使用する OpenSSL EVP_PKEY* 値 。として SafeEvpPKeyHandle表されます。

属性

例外

pkeyHandle は無効なハンドルを表しています。

pkeyHandlenullです。

pkeyHandle は DSA キーを表していません。

注釈

重要

OpenSSL では、同じプロセス内で読み込まれる複数のライブラリ バージョンがサポートされています。 このコンストラクターを呼び出す前に、ポインター値がこのクラスで使用されているのと同じバージョンの OpenSSL から取得されていることを確認します。 詳細については、「OpenSslVersion」を参照してください。

こちらもご覧ください

適用対象