DSA.Create Method
Definition
Creates a cryptographic object used to perform the asymmetric algorithm.
Overloads
Create() |
Creates the default cryptographic object used to perform the asymmetric algorithm. |
Create(Int32) |
Creates a new ephemeral DSA key with the specified key size. |
Create(DSAParameters) |
Creates a new ephemeral DSA key with the specified DSA key parameters. |
Create(String) |
Creates the specified cryptographic object used to perform the asymmetric algorithm. |
Create()
Creates the default cryptographic object used to perform the asymmetric algorithm.
public:
static System::Security::Cryptography::DSA ^ Create();
public static System.Security.Cryptography.DSA Create ();
static member Create : unit -> System.Security.Cryptography.DSA
Public Shared Function Create () As DSA
Returns
A cryptographic object used to perform the asymmetric algorithm.
See also
Create(Int32)
Creates a new ephemeral DSA key with the specified key size.
public:
static System::Security::Cryptography::DSA ^ Create(int keySizeInBits);
public static System.Security.Cryptography.DSA Create (int keySizeInBits);
static member Create : int -> System.Security.Cryptography.DSA
Public Shared Function Create (keySizeInBits As Integer) As DSA
Parameters
- keySizeInBits
- Int32
The key size, in bits.
Returns
A new ephemeral DSA key with the specified key size.
Exceptions
keySizeInBits
is not permitted by LegalKeySizes.
Create(DSAParameters)
Creates a new ephemeral DSA key with the specified DSA key parameters.
public:
static System::Security::Cryptography::DSA ^ Create(System::Security::Cryptography::DSAParameters parameters);
public static System.Security.Cryptography.DSA Create (System.Security.Cryptography.DSAParameters parameters);
static member Create : System.Security.Cryptography.DSAParameters -> System.Security.Cryptography.DSA
Public Shared Function Create (parameters As DSAParameters) As DSA
Parameters
- parameters
- DSAParameters
The parameters for the DSA algorithm.
Returns
A new ephemeral DSA key.
Create(String)
Creates the specified cryptographic object used to perform the asymmetric algorithm.
public:
static System::Security::Cryptography::DSA ^ Create(System::String ^ algName);
public static System.Security.Cryptography.DSA Create (string algName);
static member Create : string -> System.Security.Cryptography.DSA
Public Shared Function Create (algName As String) As DSA
Parameters
Returns
A cryptographic object used to perform the asymmetric algorithm.
Remarks
For DSA, use the name System.Security.Cryptography.DSA.