ECDiffieHellman.Create メソッド

定義

ECDH アルゴリズムの実装の新しいインスタンスを作成します。

オーバーロード

Create()

ECDH アルゴリズムの既定の実装の新しいインスタンスを作成します。

Create(ECCurve)

指定した曲線に対して生成された新しい公開/秘密キー ペアで ECDH (Elliptic Curve Diffie-Hellman) アルゴリズムの既定の実装の新しいインスタンスを作成します。

Create(ECParameters)

指定した ECParameters オブジェクトによって記述されたキーで Elliptic Curve Diffie-Hellman (ECDH) アルゴリズムの既定の実装の新しいインスタンスを作成します。

Create(String)

ECDH (Elliptic Curve Diffie-Hellman) アルゴリズムの指定した実装の新しいインスタンスを作成します。

Create()

ECDH アルゴリズムの既定の実装の新しいインスタンスを作成します。

public:
 static System::Security::Cryptography::ECDiffieHellman ^ Create();
public static System.Security.Cryptography.ECDiffieHellman Create ();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.ECDiffieHellman Create ();
static member Create : unit -> System.Security.Cryptography.ECDiffieHellman
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : unit -> System.Security.Cryptography.ECDiffieHellman
Public Shared Function Create () As ECDiffieHellman

戻り値

ECDiffieHellman

このクラスの既定の実装の新しいインスタンス。

属性

適用対象

Create(ECCurve)

指定した曲線に対して生成された新しい公開/秘密キー ペアで ECDH (Elliptic Curve Diffie-Hellman) アルゴリズムの既定の実装の新しいインスタンスを作成します。

public:
 static System::Security::Cryptography::ECDiffieHellman ^ Create(System::Security::Cryptography::ECCurve curve);
public static System.Security.Cryptography.ECDiffieHellman Create (System.Security.Cryptography.ECCurve curve);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.ECDiffieHellman Create (System.Security.Cryptography.ECCurve curve);
static member Create : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellman
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellman
Public Shared Function Create (curve As ECCurve) As ECDiffieHellman

パラメーター

curve
ECCurve

新しい公開/秘密キー ペアを生成するために使用する曲線。

戻り値

ECDiffieHellman

ECDH (Elliptic Curve Diffie-Hellman) アルゴリズムの既定の実装の新しいインスタンス。

属性

例外

curve は検証されません。

注釈

curve は検証する必要があります (つまり、メソッドに渡されたときに true を ECCurve.Validate 返す必要があります。

特性-2 曲線は、Windowsではサポートされていません。

こちらもご覧ください

適用対象

Create(ECParameters)

指定した ECParameters オブジェクトによって記述されたキーで Elliptic Curve Diffie-Hellman (ECDH) アルゴリズムの既定の実装の新しいインスタンスを作成します。

public:
 static System::Security::Cryptography::ECDiffieHellman ^ Create(System::Security::Cryptography::ECParameters parameters);
public static System.Security.Cryptography.ECDiffieHellman Create (System.Security.Cryptography.ECParameters parameters);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.ECDiffieHellman Create (System.Security.Cryptography.ECParameters parameters);
static member Create : System.Security.Cryptography.ECParameters -> System.Security.Cryptography.ECDiffieHellman
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : System.Security.Cryptography.ECParameters -> System.Security.Cryptography.ECDiffieHellman
Public Shared Function Create (parameters As ECParameters) As ECDiffieHellman

パラメーター

parameters
ECParameters

楕円曲線暗号 (ECC) アルゴリズムのパラメーター。

戻り値

ECDiffieHellman

ECDH (Elliptic Curve Diffie-Hellman) アルゴリズムの既定の実装の新しいインスタンス。

属性

例外

parameters は検証されません。

注釈

parametersは、メソッドに渡ECParameters.Validateされたときに検証する必要があります (つまり、返すtrue必要があります)。 暗黙的な曲線に対するパラメーターはサポートされていません。

特性-2 曲線は、Windowsではサポートされていません。

こちらもご覧ください

適用対象

Create(String)

ECDH (Elliptic Curve Diffie-Hellman) アルゴリズムの指定した実装の新しいインスタンスを作成します。

public:
 static System::Security::Cryptography::ECDiffieHellman ^ Create(System::String ^ algorithm);
public static System.Security.Cryptography.ECDiffieHellman? Create (string algorithm);
public static System.Security.Cryptography.ECDiffieHellman Create (string algorithm);
static member Create : string -> System.Security.Cryptography.ECDiffieHellman
Public Shared Function Create (algorithm As String) As ECDiffieHellman

パラメーター

algorithm
String

ECDH アルゴリズムの実装の名前。

戻り値

ECDiffieHellman

このクラスの指定した実装の新しいインスタンス。 指定したアルゴリズム名が ECDH 実装にマップされない場合、このメソッドで null が返されます。

例外

algorithm パラメーターが null です。

注釈

オブジェクトの独自の実装を開発する ECDiffieHellman 場合は、メソッド オーバーロードを Create(String) 使用して、実装を指定するカスタム algorithm 文字列を作成できます。

このパラメーターは algorithm 、ECDH アルゴリズムの実装の名前を指定します。 次の文字列はすべて同じ実装を参照しています。これは、.NET Frameworkで現在サポートされている唯一の実装です。

  • "ECDH"

  • "ECDiffieHellman"

  • "ECDiffieHellmanCng"

  • "System.Security.Cryptography.ECDiffieHellmanCng"

パラメーターのカスタム ECDH 実装の名前を algorithm 指定することもできます。 その場合、オブジェクトはそのオブジェクトを CryptoConfig 使用して ECDH オブジェクトを作成できるかどうかを判断します。

適用対象