RSA.Create 方法

定义

允许实例化 RSA 的特定实现。

重载

Create()

创建 RSA 算法的默认实现的实例。

Create(Int32)

创建具有指定密钥大小的新临时 RSA 密钥。

Create(RSAParameters)

创建具有指定 RSA 密钥参数的新临时 RSA 密钥。

Create(String)
已过时.

创建 RSA 的指定实现的实例。

Create()

Source:
RSA.Create.OpenSsl.cs
Source:
RSA.Create.OpenSsl.cs
Source:
RSA.Create.OpenSsl.cs

创建 RSA 算法的默认实现的实例。

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

返回

RSA

RSA 的默认实现的新实例。

属性

另请参阅

适用于

Create(Int32)

Source:
RSA.cs
Source:
RSA.cs
Source:
RSA.cs

创建具有指定密钥大小的新临时 RSA 密钥。

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

参数

keySizeInBits
Int32

密钥大小(以位为单位)。

返回

RSA

具有指定密钥大小的新临时 RSA 密钥。

属性

例外

keySizeInBits 不受默认实现支持。

适用于

Create(RSAParameters)

Source:
RSA.cs
Source:
RSA.cs
Source:
RSA.cs

创建具有指定 RSA 密钥参数的新临时 RSA 密钥。

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
RSAParameters

RSA 算法的参数。

返回

RSA

新的临时 RSA 密钥。

属性

例外

parameters 不表示有效 RSA 密钥。

另请参阅

适用于

Create(String)

Source:
RSA.cs
Source:
RSA.cs
Source:
RSA.cs

注意

Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.

创建 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

参数

algName
String

要使用的 RSA 的实现的名称。

返回

RSA

RSA 的指定实现的新实例。

属性

另请参阅

适用于