ECDsa.Create 方法

定義

建立 Elliptic Curve Digital Signature Algorithm (ECDSA) 實作的新執行個體。Creates a new instance of an implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA).

多載

Create()

建立 Elliptic Curve Digital Signature Algorithm (ECDSA) 預設實作的新執行個體。Creates a new instance of the default implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA).

Create(ECCurve)

使用在指定曲線上新產生的金鑰,來建立橢圓曲線數位簽章演算法 (ECDSA) 之預設實作的新執行個體。Creates a new instance of the default implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA) with a newly generated key over the specified curve.

Create(ECParameters)

使用指定的參數做為金鑰,來建立橢圓曲線數位簽章演算法 (ECDSA) 之預設實作的新執行個體。Creates a new instance of the default implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA) using the specified parameters as the key.

Create(String)

建立 Elliptic Curve Digital Signature Algorithm (ECDSA) 指定實作的新執行個體。Creates a new instance of the specified implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA).

Create()

建立 Elliptic Curve Digital Signature Algorithm (ECDSA) 預設實作的新執行個體。Creates a new instance of the default implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA).

public:
 static System::Security::Cryptography::ECDsa ^ Create();
public static System.Security.Cryptography.ECDsa Create ();
static member Create : unit -> System.Security.Cryptography.ECDsa
Public Shared Function Create () As ECDsa

傳回

ECDsa

這個類別之預設實作 (ECDsaCng) 的新執行個體。A new instance of the default implementation (ECDsaCng) of this class.

適用於

Create(ECCurve)

使用在指定曲線上新產生的金鑰,來建立橢圓曲線數位簽章演算法 (ECDSA) 之預設實作的新執行個體。Creates a new instance of the default implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA) with a newly generated key over the specified curve.

public:
 static System::Security::Cryptography::ECDsa ^ Create(System::Security::Cryptography::ECCurve curve);
public static System.Security.Cryptography.ECDsa Create (System.Security.Cryptography.ECCurve curve);
static member Create : System.Security.Cryptography.ECCurve -> System.Security.Cryptography.ECDsa
Public Shared Function Create (curve As ECCurve) As ECDsa

參數

curve
ECCurve

要用來產生曲線的金鑰。The curve to use for key generation.

傳回

ECDsa

這個類別之預設實作 (ECDsaCng) 的新執行個體。A new instance of the default implementation (ECDsaCng) of this class.

另請參閱

適用於

Create(ECParameters)

使用指定的參數做為金鑰,來建立橢圓曲線數位簽章演算法 (ECDSA) 之預設實作的新執行個體。Creates a new instance of the default implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA) using the specified parameters as the key.

public:
 static System::Security::Cryptography::ECDsa ^ Create(System::Security::Cryptography::ECParameters parameters);
public static System.Security.Cryptography.ECDsa Create (System.Security.Cryptography.ECParameters parameters);
static member Create : System.Security.Cryptography.ECParameters -> System.Security.Cryptography.ECDsa
Public Shared Function Create (parameters As ECParameters) As ECDsa

參數

parameters
ECParameters

代表要使用之金鑰的參數。The parameters representing the key to use.

傳回

ECDsa

這個類別之預設實作 (ECDsaCng) 的新執行個體。A new instance of the default implementation (ECDsaCng) of this class.

另請參閱

適用於

Create(String)

建立 Elliptic Curve Digital Signature Algorithm (ECDSA) 指定實作的新執行個體。Creates a new instance of the specified implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA).

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

參數

algorithm
String

ECDSA 實作的名稱。The name of an ECDSA implementation. 下列字串全部參考相同的實作,也就是 .NET Framework.NET Framework 中目前支援的唯一實作。The following strings all refer to the same implementation, which is the only implementation currently supported in the .NET Framework.NET Framework: - "ECDsa"- "ECDsa" - "ECDsaCng"- "ECDsaCng" - "System.Security.Cryptography.ECDsaCng"- "System.Security.Cryptography.ECDsaCng" 您也可以提供自訂 ECDSA 實作的名稱。You can also provide the name of a custom ECDSA implementation.

傳回

ECDsa

此類別之指定實作的新執行個體。A new instance of the specified implementation of this class. 如果指定的演算法名稱未對應至 ECDSA 實作,則這個方法會傳回 nullIf the specified algorithm name does not map to an ECDSA implementation, this method returns null.

例外狀況

algorithm 參數為 nullThe algorithm parameter is null.

備註

If you develop your own implementation of an <xref:System.Security.Cryptography.ECDsa> object, you can use the <xref:System.Security.Cryptography.ECDsa.Create%28System.String%29> method overload to create a custom algorithm string that specifies your implementation.

如果您指定參數的自訂值 algorithmCryptoConfig 物件將會使用它來判斷是否可以建立 ECDSA 物件。If you specify a custom value for the algorithm parameter, the CryptoConfig object will use it to determine whether an ECDSA object can be created.

適用於