RSA.Create Метод

Определение

Позволяет создавать экземпляры конкретных реализаций RSA .

Перегрузки

Имя Описание
Create()

Создает экземпляр реализации алгоритма RSA по умолчанию.

Create(Int32)

Создает новый временный ключ RSA с указанным размером ключа.

Create(RSAParameters)

Создает новый временный ключ RSA с указанными параметрами ключа RSA.

Create(String)
Устаревшие.

Создает экземпляр указанной реализации RSA.

Create()

Исходный код:
RSA.Create.OpenSsl.cs
Исходный код:
RSA.Create.OpenSsl.cs
Исходный код:
RSA.Create.OpenSsl.cs
Исходный код:
RSA.Create.OpenSsl.cs
Исходный код:
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)

Исходный код:
RSA.cs
Исходный код:
RSA.cs
Исходный код:
RSA.cs
Исходный код:
RSA.cs
Исходный код:
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)

Исходный код:
RSA.cs
Исходный код:
RSA.cs
Исходный код:
RSA.cs
Исходный код:
RSA.cs
Исходный код:
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)

Исходный код:
RSA.cs
Исходный код:
RSA.cs
Исходный код:
RSA.cs
Исходный код:
RSA.cs
Исходный код:
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.

Атрибуты

См. также раздел

Применяется к