RSA.Create 方法

定義

允許執行個體化 RSA 的特定實作。Allows specific implementations of RSA to be instantiated.

多載

Create()

建立 RSA 演算法之預設實作的執行個體。Creates an instance of the default implementation of the RSA algorithm.

Create(Int32)

使用指定的金鑰大小建立新的暫時 RSA 金鑰。Creates a new ephemeral RSA key with the specified key size.

Create(RSAParameters)

以指定的 RSA 金鑰參數建立新的暫時 RSA 金鑰。Creates a new ephemeral RSA key with the specified RSA key parameters.

Create(String)

建立 RSA 之指定實作的執行個體。Creates an instance of the specified implementation of RSA.

Create()

建立 RSA 演算法之預設實作的執行個體。Creates an instance of the default implementation of the RSA algorithm.

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

傳回

RSA

RSA 之預設實作的新執行個體。A new instance of the default implementation of RSA.

另請參閱

適用於

Create(Int32)

使用指定的金鑰大小建立新的暫時 RSA 金鑰。Creates a new ephemeral RSA key with the specified key size.

public:
 static System::Security::Cryptography::RSA ^ Create(int keySizeInBits);
public static System.Security.Cryptography.RSA Create (int keySizeInBits);
static member Create : int -> System.Security.Cryptography.RSA
Public Shared Function Create (keySizeInBits As Integer) As RSA

參數

keySizeInBits
Int32

金鑰大小 (位元)。The key size, in bits.

傳回

RSA

具有指定金鑰大小的新暫時 RSA 金鑰。A new ephemeral RSA key with the specified key size.

例外狀況

預設實作不支援 keySizeInBitskeySizeInBits is not supported by the default implementation.

適用於

Create(RSAParameters)

以指定的 RSA 金鑰參數建立新的暫時 RSA 金鑰。Creates a new ephemeral RSA key with the specified RSA key parameters.

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

參數

parameters
RSAParameters

RSA 演算法的參數。The parameters for the RSA algorithm.

傳回

RSA

新的暫時 RSA 金鑰。A new ephemeral RSA key.

例外狀況

parameters 不代表有效的 RSA 金鑰。parameters does not represent a valid RSA key.

另請參閱

適用於

Create(String)

建立 RSA 之指定實作的執行個體。Creates an instance of the specified implementation of RSA.

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

參數

algName
String

要使用之 RSA 的實作的名稱。The name of the implementation of RSA to use.

傳回

RSA

指定之 RSA 實作的新執行個體。A new instance of the specified implementation of RSA.

另請參閱

適用於