ECDiffieHellmanOpenSsl コンストラクター

定義

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

オーバーロード

名前 説明
ECDiffieHellmanOpenSsl()

既定の曲線 NIST P-521/secp521r1 を使用して、 ECDiffieHellmanOpenSsl クラスの新しいインスタンスを初期化します。

ECDiffieHellmanOpenSsl(Int32)

指定したサイズの NIST 素曲線を既定値にして、 ECDiffieHellmanOpenSsl クラスの新しいインスタンスを初期化します。

ECDiffieHellmanOpenSsl(IntPtr)

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

ECDiffieHellmanOpenSsl(ECCurve)

ECDiffieHellmanOpenSsl クラスの新しいインスタンスを初期化し、指定した曲線に新しいキーを生成します。

ECDiffieHellmanOpenSsl(SafeEvpPKeyHandle)

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

ECDiffieHellmanOpenSsl()

ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs

既定の曲線 NIST P-521/secp521r1 を使用して、 ECDiffieHellmanOpenSsl クラスの新しいインスタンスを初期化します。

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

注釈

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

こちらもご覧ください

適用対象

ECDiffieHellmanOpenSsl(Int32)

ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs

指定したサイズの NIST 素曲線を既定値にして、 ECDiffieHellmanOpenSsl クラスの新しいインスタンスを初期化します。

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

パラメーター

keySize
Int32

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

属性

例外

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

注釈

このコンストラクターでは、256 (NIST P-256/secp256r1)、384 (NIST P-384/secp384r1)、521 (NIST P-521/secp521r1) の 3 つのキー サイズのみがサポートされます。 キーを生成する その他の曲線の場合は、 ECDiffieHellmanOpenSsl(ECCurve) コンストラクターまたは GenerateKey(ECCurve) メソッドを使用します。

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

こちらもご覧ください

適用対象

ECDiffieHellmanOpenSsl(IntPtr)

ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs

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

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

パラメーター

handle
IntPtr

nativeint

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

属性

例外

handleZeroです。

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

注釈

Important

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

こちらもご覧ください

適用対象

ECDiffieHellmanOpenSsl(ECCurve)

ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs

ECDiffieHellmanOpenSsl クラスの新しいインスタンスを初期化し、指定した曲線に新しいキーを生成します。

public:
 ECDiffieHellmanOpenSsl(System::Security::Cryptography::ECCurve curve);
[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 ECDiffieHellmanOpenSsl(System.Security.Cryptography.ECCurve curve);
public ECDiffieHellmanOpenSsl(System.Security.Cryptography.ECCurve curve);
[<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.ECDiffieHellmanOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellmanOpenSsl
Public Sub New (curve As ECCurve)

パラメーター

curve
ECCurve

エフェメラル公開キーと秘密キーのペアを生成するために使用される曲線。

属性

例外

curve は検証しません。

こちらもご覧ください

適用対象

ECDiffieHellmanOpenSsl(SafeEvpPKeyHandle)

ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs
ソース:
ECDiffieHellmanOpenSsl.cs

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

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

パラメーター

pkeyHandle
SafeEvpPKeyHandle

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

属性

例外

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

pkeyHandlenullです。

pkeyHandle は、楕円曲線 (EC) キーを表していません。

注釈

Important

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

こちらもご覧ください

適用対象