DSA.Create 方法

定义

创建用于执行非对称算法的加密对象。Creates a cryptographic object used to perform the asymmetric algorithm.

重载

Create()

创建用于执行不对称算法的默认加密对象。Creates the default cryptographic object used to perform the asymmetric algorithm.

Create(Int32)

创建具有指定密钥大小的新临时 DSA 密钥。Creates a new ephemeral DSA key with the specified key size.

Create(DSAParameters)

创建具有指定 DSA 密钥参数的新临时 DSA 密钥。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

返回

DSA

一个加密对象,用于执行不对称算法。A cryptographic object used to perform the asymmetric algorithm.

适用于

Create(Int32)

创建具有指定密钥大小的新临时 DSA 密钥。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

参数

keySizeInBits
Int32

密钥大小(以位为单位)。The key size, in bits.

返回

DSA

具有指定密钥大小的新临时 DSA 密钥。A new ephemeral DSA key with the specified key size.

例外

LegalKeySizes 不允许 keySizeInBitskeySizeInBits is not permitted by LegalKeySizes.

适用于

Create(DSAParameters)

创建具有指定 DSA 密钥参数的新临时 DSA 密钥。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
DSAParameters

DSA 算法的参数。The parameters for the DSA algorithm.

返回

DSA

新的临时 DSA 密钥。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);
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

参数

algName
String

要使用的 DSA 的特定实现的名称。The name of the specific implementation of DSA to use.

返回

DSA

一个加密对象,用于执行不对称算法。A cryptographic object used to perform the asymmetric algorithm.

注解

对于 DSA ,请使用名称 "system.string"。For DSA, use the name System.Security.Cryptography.DSA.

适用于