ECDiffieHellman.Create メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
楕円曲線 Diffie-Hellman (ECDH) アルゴリズムの実装の新しいインスタンスを作成します。
オーバーロード
| 名前 | 説明 |
|---|---|
| Create() |
楕円曲線 Diffie-Hellman (ECDH) アルゴリズムの既定の実装の新しいインスタンスを作成します。 |
| Create(ECCurve) |
楕円曲線 Diffie-Hellman (ECDH) アルゴリズムの既定の実装の新しいインスタンスを作成し、指定した曲線に対して新しい公開キーと秘密キーのペアを生成します。 |
| Create(ECParameters) |
指定した ECParameters オブジェクトによって記述されたキーを使用して、楕円曲線 Diffie-Hellman (ECDH) アルゴリズムの既定の実装の新しいインスタンスを作成します。 |
| Create(String) |
古い.
楕円曲線 Diffie-Hellman (ECDH) アルゴリズムの指定された実装の新しいインスタンスを作成します。 |
Create()
楕円曲線 Diffie-Hellman (ECDH) アルゴリズムの既定の実装の新しいインスタンスを作成します。
public:
static System::Security::Cryptography::ECDiffieHellman ^ Create();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.ECDiffieHellman Create();
public static System.Security.Cryptography.ECDiffieHellman Create();
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : unit -> System.Security.Cryptography.ECDiffieHellman
static member Create : unit -> System.Security.Cryptography.ECDiffieHellman
Public Shared Function Create () As ECDiffieHellman
返品
このクラスの既定の実装の新しいインスタンス。
- 属性
適用対象
Create(ECCurve)
楕円曲線 Diffie-Hellman (ECDH) アルゴリズムの既定の実装の新しいインスタンスを作成し、指定した曲線に対して新しい公開キーと秘密キーのペアを生成します。
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);
public static System.Security.Cryptography.ECDiffieHellman Create(System.Security.Cryptography.ECCurve curve);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellman
static member Create : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDiffieHellman
Public Shared Function Create (curve As ECCurve) As ECDiffieHellman
パラメーター
- curve
- ECCurve
新しい公開キーと秘密キーのペアを生成するために使用する曲線。
返品
楕円曲線 Diffie-Hellman (ECDH) アルゴリズムの既定の実装の新しいインスタンス。
- 属性
例外
curve は検証しません。
注釈
curve は検証する必要があります (つまり、 ECCurve.Validate メソッドに渡されたときに true を返す必要があります。
特性-2 曲線は、Windowsではサポートされていません。
こちらもご覧ください
適用対象
Create(ECParameters)
指定した ECParameters オブジェクトによって記述されたキーを使用して、楕円曲線 Diffie-Hellman (ECDH) アルゴリズムの既定の実装の新しいインスタンスを作成します。
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);
public static System.Security.Cryptography.ECDiffieHellman Create(System.Security.Cryptography.ECParameters parameters);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : System.Security.Cryptography.ECParameters -> System.Security.Cryptography.ECDiffieHellman
static member Create : System.Security.Cryptography.ECParameters -> System.Security.Cryptography.ECDiffieHellman
Public Shared Function Create (parameters As ECParameters) As ECDiffieHellman
パラメーター
- parameters
- ECParameters
楕円曲線暗号 (ECC) アルゴリズムのパラメーター。
返品
楕円曲線 Diffie-Hellman (ECDH) アルゴリズムの既定の実装の新しいインスタンス。
- 属性
例外
parameters は検証しません。
注釈
parametersは、true メソッドに渡されたときに検証する必要があります (つまり、ECParameters.Validateを返す必要があります)。 暗黙的な曲線に対するパラメーターはサポートされていません。
特性-2 曲線は、Windowsではサポートされていません。
こちらもご覧ください
適用対象
Create(String)
注意事項
Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.
楕円曲線 Diffie-Hellman (ECDH) アルゴリズムの指定された実装の新しいインスタンスを作成します。
public:
static System::Security::Cryptography::ECDiffieHellman ^ Create(System::String ^ algorithm);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
[System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.ECDiffieHellman? Create(string algorithm);
public static System.Security.Cryptography.ECDiffieHellman? Create(string algorithm);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
public static System.Security.Cryptography.ECDiffieHellman? Create(string algorithm);
public static System.Security.Cryptography.ECDiffieHellman Create(string algorithm);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")>]
[<System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member Create : string -> System.Security.Cryptography.ECDiffieHellman
static member Create : string -> System.Security.Cryptography.ECDiffieHellman
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")>]
static member Create : string -> System.Security.Cryptography.ECDiffieHellman
Public Shared Function Create (algorithm As String) As ECDiffieHellman
パラメーター
- algorithm
- String
ECDH アルゴリズムの実装の名前。
返品
このクラスの指定した実装の新しいインスタンス。 指定したアルゴリズム名が ECDH 実装にマップされない場合、このメソッドは nullを返します。
- 属性
例外
algorithm パラメーターはnull。
注釈
ECDiffieHellman オブジェクトの独自の実装を開発する場合は、Create(String) メソッドのオーバーロードを使用して、実装を指定するカスタム algorithm文字列を作成できます。
algorithm パラメーターは、ECDH アルゴリズムの実装の名前を指定します。 次の文字列はすべて同じ実装を参照しています。これは、.NET Framework で現在サポートされている唯一の実装です。
"ECDH"
"ECDiffieHellman"
"ECDiffieHellmanCng"
"System.Security.Cryptography.ECDiffieHellmanCng"
algorithm パラメーターにカスタム ECDH 実装の名前を指定することもできます。 その場合、 CryptoConfig オブジェクトはそれを使用して、ECDH オブジェクトを作成できるかどうかを判断します。