DSA.Create Метод

Определение

Создает криптографический объект, используемый для выполнения асимметричного алгоритма.

Перегрузки

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

Создает криптографический объект по умолчанию, используемый для выполнения асимметричного алгоритма.

Create(Int32)

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

Create(DSAParameters)

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

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

Создает указанный криптографический объект, используемый для выполнения асимметричного алгоритма.

Create()

Исходный код:
DSA.cs
Исходный код:
DSA.cs
Исходный код:
DSA.cs
Исходный код:
DSA.cs
Исходный код:
DSA.cs

Создает криптографический объект по умолчанию, используемый для выполнения асимметричного алгоритма.

public:
 static System::Security::Cryptography::DSA ^ Create();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static System.Security.Cryptography.DSA Create();
public static System.Security.Cryptography.DSA Create();
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static System.Security.Cryptography.DSA Create();
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
static member Create : unit -> System.Security.Cryptography.DSA
static member Create : unit -> System.Security.Cryptography.DSA
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
static member Create : unit -> System.Security.Cryptography.DSA
Public Shared Function Create () As DSA

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

DSA

Криптографический объект, используемый для выполнения асимметричного алгоритма.

Атрибуты

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

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

Create(Int32)

Исходный код:
DSA.cs
Исходный код:
DSA.cs
Исходный код:
DSA.cs
Исходный код:
DSA.cs
Исходный код:
DSA.cs

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

public:
 static System::Security::Cryptography::DSA ^ Create(int keySizeInBits);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static System.Security.Cryptography.DSA Create(int keySizeInBits);
public static System.Security.Cryptography.DSA Create(int keySizeInBits);
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static System.Security.Cryptography.DSA Create(int keySizeInBits);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
static member Create : int -> System.Security.Cryptography.DSA
static member Create : int -> System.Security.Cryptography.DSA
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
static member Create : int -> System.Security.Cryptography.DSA
Public Shared Function Create (keySizeInBits As Integer) As DSA

Параметры

keySizeInBits
Int32

Размер ключа в битах.

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

DSA

Новый временный ключ DSA с указанным размером ключа.

Атрибуты

Исключения

keySizeInBits не разрешено LegalKeySizes.

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

Create(DSAParameters)

Исходный код:
DSA.cs
Исходный код:
DSA.cs
Исходный код:
DSA.cs
Исходный код:
DSA.cs
Исходный код:
DSA.cs

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

public:
 static System::Security::Cryptography::DSA ^ Create(System::Security::Cryptography::DSAParameters parameters);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static System.Security.Cryptography.DSA Create(System.Security.Cryptography.DSAParameters parameters);
public static System.Security.Cryptography.DSA Create(System.Security.Cryptography.DSAParameters parameters);
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static System.Security.Cryptography.DSA Create(System.Security.Cryptography.DSAParameters parameters);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
static member Create : System.Security.Cryptography.DSAParameters -> System.Security.Cryptography.DSA
static member Create : System.Security.Cryptography.DSAParameters -> System.Security.Cryptography.DSA
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
static member Create : System.Security.Cryptography.DSAParameters -> System.Security.Cryptography.DSA
Public Shared Function Create (parameters As DSAParameters) As DSA

Параметры

parameters
DSAParameters

Параметры алгоритма DSA .

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

DSA

Новый временный ключ DSA.

Атрибуты

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

Create(String)

Исходный код:
DSA.cs
Исходный код:
DSA.cs
Исходный код:
DSA.cs
Исходный код:
DSA.cs
Исходный код:
DSA.cs

Внимание!

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

Создает указанный криптографический объект, используемый для выполнения асимметричного алгоритма.

public:
 static System::Security::Cryptography::DSA ^ 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.DSA? Create(string algName);
public static System.Security.Cryptography.DSA? 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.DSA? Create(string algName);
public static System.Security.Cryptography.DSA 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.DSA
static member Create : string -> System.Security.Cryptography.DSA
[<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.DSA
Public Shared Function Create (algName As String) As DSA

Параметры

algName
String

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

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

DSA

Криптографический объект, используемый для выполнения асимметричного алгоритма.

Атрибуты

Комментарии

Для DSAэтого используйте имя System.Security.Cryptography.DSA.

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

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