RSAOpenSsl コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
RSAOpenSsl クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| RSAOpenSsl() |
ランダムな 2048 ビット キー ペアを使用して、 RSAOpenSsl クラスの新しいインスタンスを初期化します。 |
| RSAOpenSsl(Int32) |
指定したサイズのランダムに生成されたキーを使用して、 RSAOpenSsl クラスの新しいインスタンスを初期化します。 |
| RSAOpenSsl(IntPtr) |
RSAOpenSslとして表される既存の OpenSSL キーから、 |
| RSAOpenSsl(RSAParameters) |
指定したキー パラメーターを使用して、 RSAOpenSsl クラスの新しいインスタンスを初期化します。 |
| RSAOpenSsl(SafeEvpPKeyHandle) |
RSAOpenSslとして表される既存の OpenSSL キーから、 |
RSAOpenSsl()
- ソース:
- RSAOpenSsl.cs
- ソース:
- RSAOpenSsl.cs
- ソース:
- RSAOpenSsl.cs
- ソース:
- RSAOpenSsl.cs
- ソース:
- RSAOpenSsl.cs
ランダムな 2048 ビット キー ペアを使用して、 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 RSAOpenSsl();
Public Sub New ()
- 属性
注釈
このコンストラクターは、新しい公開/秘密キーペアをすぐに生成しません。 このコンストラクターは、 KeySize プロパティを 2048 に設定し、キーが必要な場合は、プロパティ値を使用して生成されます。 ImportParameters メソッドまたは別のキー インポート メソッドを使用してキーが読み込まれる場合、このコンストラクターのキー サイズには意味がありません。
適用対象
RSAOpenSsl(Int32)
- ソース:
- RSAOpenSsl.cs
- ソース:
- RSAOpenSsl.cs
- ソース:
- RSAOpenSsl.cs
- ソース:
- RSAOpenSsl.cs
- ソース:
- RSAOpenSsl.cs
指定したサイズのランダムに生成されたキーを使用して、 RSAOpenSsl クラスの新しいインスタンスを初期化します。
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);
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")>]
new System.Security.Cryptography.RSAOpenSsl : int -> System.Security.Cryptography.RSAOpenSsl
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
- ソース:
- RSAOpenSsl.cs
- ソース:
- RSAOpenSsl.cs
RSAOpenSslとして表される既存の OpenSSL キーから、RSA* クラスの新しいインスタンスを初期化します。
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);
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")>]
new System.Security.Cryptography.RSAOpenSsl : nativeint -> System.Security.Cryptography.RSAOpenSsl
new System.Security.Cryptography.RSAOpenSsl : nativeint -> System.Security.Cryptography.RSAOpenSsl
Public Sub New (handle As IntPtr)
パラメーター
- handle
-
IntPtr
nativeint
- 属性
例外
handle は有効な RSA*ではありません。
handle が無効です
注釈
Important
OpenSSL では、同じプロセス内で読み込まれる複数のライブラリ バージョンがサポートされています。 このコンストラクターを呼び出す前に、ポインター値がこのクラスで使用されているのと同じバージョンの OpenSSL から取得されていることを確認します。 詳細については、OpenSslVersionを参照してください。
適用対象
RSAOpenSsl(RSAParameters)
- ソース:
- RSAOpenSsl.cs
- ソース:
- RSAOpenSsl.cs
- ソース:
- RSAOpenSsl.cs
- ソース:
- RSAOpenSsl.cs
- ソース:
- RSAOpenSsl.cs
指定したキー パラメーターを使用して、 RSAOpenSsl クラスの新しいインスタンスを初期化します。
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);
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")>]
new System.Security.Cryptography.RSAOpenSsl : System.Security.Cryptography.RSAParameters -> System.Security.Cryptography.RSAOpenSsl
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
- ソース:
- RSAOpenSsl.cs
- ソース:
- RSAOpenSsl.cs
RSAOpenSslとして表される既存の OpenSSL キーから、EVP_PKEY* クラスの新しいインスタンスを初期化します。
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);
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")>]
new System.Security.Cryptography.RSAOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.RSAOpenSsl
new System.Security.Cryptography.RSAOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.RSAOpenSsl
Public Sub New (pkeyHandle As SafeEvpPKeyHandle)
パラメーター
- pkeyHandle
- SafeEvpPKeyHandle
- 属性
例外
pkeyHandle は RSA キーを表しません。
pkeyHandle は null です
pkeyHandle は、 IsInvalidに従って無効です。
注釈
.NET 9 以降のバージョンでは、pkeyHandleの外部変更も、このコンストラクターが作成するインスタンスに格納されているハンドルに影響します。
Important
OpenSSL では、同じプロセス内で読み込まれる複数のライブラリ バージョンがサポートされています。 このコンストラクターを呼び出す前に、ポインター値がこのクラスで使用されているのと同じバージョンの OpenSSL から取得されていることを確認します。 詳細については、OpenSslVersionを参照してください。