RSA.Create Метод

Определение

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

Перегрузки

Create()

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

Create(Int32)

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

Create(RSAParameters)

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

Create(String)

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

Create()

Создает экземпляр реализации алгоритма 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)

Создает новый временный 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)

Создает новый временный 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)

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

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

Параметры

algName
String

Имя используемой реализации RSA.

Возвращаемое значение

RSA

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

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

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