RSAOpenSsl コンストラクター

定義

オーバーロード

RSAOpenSsl()

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

RSAOpenSsl(Int32)

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

RSAOpenSsl(IntPtr)

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

RSAOpenSsl(RSAParameters)

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

RSAOpenSsl(SafeEvpPKeyHandle)

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

RSAOpenSsl()

ソース:
RSAOpenSsl.cs
ソース:
RSAOpenSsl.cs
ソース:
RSAOpenSsl.cs

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

public:
 RSAOpenSsl();
public RSAOpenSsl ();
[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 RSAOpenSsl ();
Public Sub New ()
属性

注釈

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

適用対象

RSAOpenSsl(Int32)

ソース:
RSAOpenSsl.cs
ソース:
RSAOpenSsl.cs
ソース:
RSAOpenSsl.cs

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

public:
 RSAOpenSsl(int keySize);
public RSAOpenSsl (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 RSAOpenSsl (int keySize);
new System.Security.Cryptography.RSAOpenSsl : int -> System.Security.Cryptography.RSAOpenSsl
[<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.RSAOpenSsl : int -> System.Security.Cryptography.RSAOpenSsl
Public Sub New (keySize As Integer)

パラメーター

keySize
Int32

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

属性

例外

keySize が無効です。

適用対象

RSAOpenSsl(IntPtr)

ソース:
RSAOpenSsl.cs
ソース:
RSAOpenSsl.cs
ソース:
RSAOpenSsl.cs

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

public:
 RSAOpenSsl(IntPtr handle);
public RSAOpenSsl (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 RSAOpenSsl (IntPtr handle);
new System.Security.Cryptography.RSAOpenSsl : nativeint -> System.Security.Cryptography.RSAOpenSsl
[<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.RSAOpenSsl : nativeint -> System.Security.Cryptography.RSAOpenSsl
Public Sub New (handle As IntPtr)

パラメーター

handle
IntPtr

nativeint

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

属性

例外

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

handle が無効です

注釈

重要

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

適用対象

RSAOpenSsl(RSAParameters)

ソース:
RSAOpenSsl.cs
ソース:
RSAOpenSsl.cs
ソース:
RSAOpenSsl.cs

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

public:
 RSAOpenSsl(System::Security::Cryptography::RSAParameters parameters);
public RSAOpenSsl (System.Security.Cryptography.RSAParameters 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 RSAOpenSsl (System.Security.Cryptography.RSAParameters parameters);
new System.Security.Cryptography.RSAOpenSsl : System.Security.Cryptography.RSAParameters -> System.Security.Cryptography.RSAOpenSsl
[<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.RSAOpenSsl : System.Security.Cryptography.RSAParameters -> System.Security.Cryptography.RSAOpenSsl
Public Sub New (parameters As RSAParameters)

パラメーター

parameters
RSAParameters

キーのパラメーター。

属性

例外

parameters は有効な RSA 値ではありません。

注釈

このコンストラクターは、既定のコンストラクターを使用して を呼び出すこと ImportParametersと同じです。

適用対象

RSAOpenSsl(SafeEvpPKeyHandle)

ソース:
RSAOpenSsl.cs
ソース:
RSAOpenSsl.cs
ソース:
RSAOpenSsl.cs

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

public:
 RSAOpenSsl(System::Security::Cryptography::SafeEvpPKeyHandle ^ pkeyHandle);
public RSAOpenSsl (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 RSAOpenSsl (System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
new System.Security.Cryptography.RSAOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.RSAOpenSsl
[<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.RSAOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.RSAOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)

パラメーター

pkeyHandle
SafeEvpPKeyHandle

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

属性

例外

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

pkeyHandlenull です

pkeyHandle が に従って IsInvalid無効です。

注釈

重要

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

適用対象