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
Source:
RSA.Create.OpenSsl.cs
Source:
RSA.Create.OpenSsl.cs

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

public:
 static System::Security::Cryptography::RSA ^ Create();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.RSA Create();
public static System.Security.Cryptography.RSA Create();
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : unit -> System.Security.Cryptography.RSA
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
Source:
RSA.cs
Source:
RSA.cs

使用指定的密钥大小创建新的临时 RSA 密钥。

public:
 static System::Security::Cryptography::RSA ^ Create(int keySizeInBits);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.RSA Create(int keySizeInBits);
public static System.Security.Cryptography.RSA Create(int keySizeInBits);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : int -> System.Security.Cryptography.RSA
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
Source:
RSA.cs
Source:
RSA.cs

使用指定的 RSA 密钥参数创建新的临时 RSA 密钥。

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);
public static System.Security.Cryptography.RSA Create(System.Security.Cryptography.RSAParameters parameters);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : System.Security.Cryptography.RSAParameters -> System.Security.Cryptography.RSA
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
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);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
[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);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
public static System.Security.Cryptography.RSA? Create(string algName);
public static System.Security.Cryptography.RSA Create(string algName);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")>]
[<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
static member Create : string -> System.Security.Cryptography.RSA
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")>]
static member Create : string -> System.Security.Cryptography.RSA
Public Shared Function Create (algName As String) As RSA

参数

algName
String

要使用的实现 RSA 的名称。

返回

RSA

指定实现 RSA的一个新实例。

属性

另请参阅

适用于