RSA.Create RSA.Create RSA.Create RSA.Create Method

Definition

Allows specific implementations of RSA to be instantiated.

Overloads

Create() Create() Create() Create()

Creates an instance of the default implementation of the RSA algorithm.

Create(Int32) Create(Int32) Create(Int32) Create(Int32)

Creates a new ephemeral RSA key with the specified key size.

Create(RSAParameters) Create(RSAParameters) Create(RSAParameters) Create(RSAParameters)

Creates a new ephemeral RSA key with the specified RSA key parameters.

Create(String) Create(String) Create(String) Create(String)

Creates an instance of the specified implementation of RSA.

Create() Create() Create() Create()

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

Returns

A new instance of the default implementation of RSA.

See also

Create(Int32) Create(Int32) Create(Int32) Create(Int32)

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

Parameters

keySizeInBits
Int32 Int32 Int32 Int32

The key size, in bits.

Returns

A new ephemeral RSA key with the specified key size.

Exceptions

Create(RSAParameters) Create(RSAParameters) Create(RSAParameters) Create(RSAParameters)

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

parameters
RSAParameters RSAParameters RSAParameters RSAParameters

The parameters for the RSA algorithm.

Returns

A new ephemeral RSA key.

Create(String) Create(String) Create(String) Create(String)

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);
static member Create : string -> System.Security.Cryptography.RSA
Public Shared Function Create (algName As String) As RSA

Parameters

algName
String String String String

The name of the implementation of RSA to use.

Returns

A new instance of the specified implementation of RSA.

See also

Applies to