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.object。For DSA, use the name System.Security.Cryptography.DSA.

另請參閱

適用於