RSAOpenSsl コンストラクター

定義

オーバーロード

RSAOpenSsl()

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

RSAOpenSsl(Int32)

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

RSAOpenSsl(IntPtr)

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

RSAOpenSsl(RSAParameters)

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

RSAOpenSsl(SafeEvpPKeyHandle)

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

RSAOpenSsl()

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

ランダムな 2048 ビット キー ペアを使用して、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

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

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

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

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

IsInvalidによると、pkeyHandle は無効です。

注釈

.NET 9 以降のバージョンでは、pkeyHandle の外部変更も、このコンストラクターが作成するインスタンスに格納されているハンドルに影響します。

大事な

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

適用対象