RSA.Create Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Allows specific implementations of RSA to be instantiated.
Create() |
Creates an instance of the default implementation of the RSA algorithm. |
Create(Int32) |
Creates a new ephemeral RSA key with the specified key size. |
Create(RSAParameters) |
Creates a new ephemeral RSA key with the specified RSA key parameters. |
Create(String) |
Obsolete.
Creates an instance of the specified implementation of RSA. |
- Source:
- RSA.Create.OpenSsl.cs
- Source:
- RSA.Create.OpenSsl.cs
- Source:
- RSA.Create.OpenSsl.cs
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 ();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.RSA Create ();
static member Create : unit -> System.Security.Cryptography.RSA
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : unit -> System.Security.Cryptography.RSA
Public Shared Function Create () As RSA
Returns
A new instance of the default implementation of RSA.
- Attributes
See also
Applies to
.NET 9 og aðrar útgáfur
Vara | Útgáfur |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.3, 1.4, 1.6, 2.0, 2.1 |
- Source:
- RSA.cs
- Source:
- RSA.cs
- Source:
- RSA.cs
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);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.RSA Create (int keySizeInBits);
static member Create : int -> System.Security.Cryptography.RSA
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : int -> System.Security.Cryptography.RSA
Public Shared Function Create (keySizeInBits As Integer) As RSA
Parameters
- keySizeInBits
- Int32
The key size, in bits.
Returns
A new ephemeral RSA key with the specified key size.
- Attributes
Exceptions
keySizeInBits
is not supported by the default implementation.
Applies to
.NET 9 og aðrar útgáfur
Vara | Útgáfur |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.1 |
- Source:
- RSA.cs
- Source:
- RSA.cs
- Source:
- RSA.cs
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);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.RSA Create (System.Security.Cryptography.RSAParameters parameters);
static member Create : System.Security.Cryptography.RSAParameters -> System.Security.Cryptography.RSA
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : System.Security.Cryptography.RSAParameters -> System.Security.Cryptography.RSA
Public Shared Function Create (parameters As RSAParameters) As RSA
Parameters
- parameters
- RSAParameters
The parameters for the RSA algorithm.
Returns
A new ephemeral RSA key.
- Attributes
Exceptions
parameters
does not represent a valid RSA key.
See also
Applies to
.NET 9 og aðrar útgáfur
Vara | Útgáfur |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.1 |
- Source:
- RSA.cs
- Source:
- RSA.cs
- Source:
- RSA.cs
Caution
Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.
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);
[System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
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
[<System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member Create : string -> System.Security.Cryptography.RSA
Public Shared Function Create (algName As String) As RSA
Parameters
Returns
A new instance of the specified implementation of RSA.
- Attributes
See also
Applies to
.NET 9 og aðrar útgáfur
Vara | Útgáfur (Úrelt) |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6 (7, 8, 9) |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET umsögn
.NET er opið verkefni. Veldu tengil til að gefa umsögn: