ECDiffieHellmanOpenSsl コンストラクター

定義

オーバーロード

ECDiffieHellmanOpenSsl()

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

ECDiffieHellmanOpenSsl(Int32)

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

ECDiffieHellmanOpenSsl(IntPtr)

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

ECDiffieHellmanOpenSsl(ECCurve)

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

ECDiffieHellmanOpenSsl(SafeEvpPKeyHandle)

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

ECDiffieHellmanOpenSsl()

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

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

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

注釈

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

こちらもご覧ください

適用対象

ECDiffieHellmanOpenSsl(Int32)

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

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

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")]
public ECDiffieHellmanOpenSsl (int keySize);
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : int -> System.Security.Cryptography.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")>]
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

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

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")]
public ECDiffieHellmanOpenSsl (IntPtr handle);
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : nativeint -> System.Security.Cryptography.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")>]
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* ではありません。

注釈

重要

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

こちらもご覧ください

適用対象

ECDiffieHellmanOpenSsl(ECCurve)

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

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

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")]
public ECDiffieHellmanOpenSsl (System.Security.Cryptography.ECCurve curve);
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.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")>]
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

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

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")]
public ECDiffieHellmanOpenSsl (System.Security.Cryptography.SafeEvpPKeyHandle pkeyHandle);
new System.Security.Cryptography.ECDiffieHellmanOpenSsl : System.Security.Cryptography.SafeEvpPKeyHandle -> System.Security.Cryptography.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")>]
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) キーを表していません。

注釈

重要

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

こちらもご覧ください

適用対象