SHA256.Create Metoda

Definicja

Umożliwia utworzenie wystąpienia określonych implementacji tej klasy abstrakcyjnej.

Przeciążenia

Nazwa Opis
Create()

Tworzy wystąpienie domyślnej implementacji .SHA256

Create(String)
Przestarzałe.

Tworzy wystąpienie określonej implementacji klasy SHA256.

Create()

Źródło:
SHA256.cs
Źródło:
SHA256.cs
Źródło:
SHA256.cs
Źródło:
SHA256.cs
Źródło:
SHA256.cs

Tworzy wystąpienie domyślnej implementacji .SHA256

public:
 static System::Security::Cryptography::SHA256 ^ Create();
public static System.Security.Cryptography.SHA256 Create();
static member Create : unit -> System.Security.Cryptography.SHA256
Public Shared Function Create () As SHA256

Zwraca

Nowe wystąpienie klasy SHA256. W .NET Framework ta metoda tworzy wystąpienie klasy SHA256Managed, jeśli tryb FIPS nie jest aktywny; jeśli tryb FIPS jest aktywny, tworzy wystąpienie klasy SHA256Cng. W .NET Core zwraca wystąpienie klasy prywatnej pochodzącej z SHA256.

Wyjątki

Tylko w .NET Framework 4.6.1 i starszych wersjach: algorytm był używany z włączonym trybem FiPS (Federal Information Processing Standards), ale nie jest zgodny ze standardem FIPS.

Zobacz też

Dotyczy

Create(String)

Źródło:
SHA256.cs
Źródło:
SHA256.cs
Źródło:
SHA256.cs
Źródło:
SHA256.cs
Źródło:
SHA256.cs

Uwaga

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

Tworzy wystąpienie określonej implementacji klasy SHA256.

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

Parametry

hashName
String

Nazwa konkretnej implementacji, która SHA256 ma być używana.

Zwraca

Nowe wystąpienie SHA256 użycia określonej implementacji.

Atrybuty

Wyjątki

Tylko w .NET Framework: tryb FIPS jest włączony, ale hashName żądań SHA256Managed, który nie jest zgodny ze standardem FIPS.

Uwagi

Struktura .NET zawiera implementacje i skojarzone wartości hashName:

Implementation hashName
SHA256Managed SHA256
SHA-256
System.Security.Cryptography.SHA256
SHA256Cng System.Security.Cryptography.SHA256Cng
SHA256CryptoServiceProvider System.Security.Cryptography.SHA256CryptoServiceProvider

Zobacz też

Dotyczy