ECDsa.Create Method

Definition

Creates a new instance of an implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA).

Overloads

Create()

Creates a new instance of the default implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA).

Create(ECCurve)

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)

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)

Creates a new instance of the specified implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA).

Create()

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

Returns

ECDsa

A new instance of the default implementation (ECDsaCng) of this class.

Applies to

Create(ECCurve)

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

Parameters

curve
ECCurve

The curve to use for key generation.

Returns

ECDsa

A new instance of the default implementation (ECDsaCng) of this class.

See also

Applies to

Create(ECParameters)

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

parameters
ECParameters

The parameters representing the key to use.

Returns

ECDsa

A new instance of the default implementation (ECDsaCng) of this class.

See also

Applies to

Create(String)

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

Parameters

algorithm
String

The name of an ECDSA implementation. The following strings all refer to the same implementation, which is the only implementation currently supported in the .NET Framework:

  • "ECDsa"

  • "ECDsaCng"

  • "System.Security.Cryptography.ECDsaCng"

You can also provide the name of a custom ECDSA implementation.

Returns

ECDsa

A new instance of the specified implementation of this class. If the specified algorithm name does not map to an ECDSA implementation, this method returns null.

Exceptions

The algorithm parameter is null.

Remarks

If you develop your own implementation of an ECDsa object, you can use the Create(String) method overload to create a custom algorithm string that specifies your implementation.

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.

Applies to