SHA256.Create Metodo

Definizione

Consente la creazione di istanze di implementazioni specifiche di questa classe astratta.

Overload

Create()

Consente di creare un'istanza dell'implementazione predefinita di SHA256.

Create(String)
Obsoleti.

Consente di creare un'istanza di un'implementazione specificata di SHA256.

Create()

Source:
SHA256.cs
Source:
SHA256.cs
Source:
SHA256.cs

Consente di creare un'istanza dell'implementazione predefinita di 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

Restituisce

Nuova istanza di SHA256. In .NET Framework, questo metodo crea un'istanza della classe SHA256Managed se non è attiva la modalità FIPS. Se la modalità FIPS è attiva, crea un'istanza della classe SHA256Cng. In .NET Core, restituisce un'istanza di una classe privata derivata da SHA256.

Eccezioni

Solo in .NET Framework 4.6.1 e versioni precedenti l'algoritmo è stato usato con la modalità FIPS (Federal Information Processing Standards) abilitata, ma non è compatibile con FIPS.

Vedi anche

Si applica a

Create(String)

Source:
SHA256.cs
Source:
SHA256.cs
Source:
SHA256.cs

Attenzione

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

Consente di creare un'istanza di un'implementazione specificata di SHA256.

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

Parametri

hashName
String

Nome dell'implementazione specifica di SHA256 da utilizzare.

Restituisce

Nuova istanza di SHA256 basata sull'implementazione specificata.

Attributi

Eccezioni

Solo in .NET Framework: la modalità FIPS è abilitata, ma hashName richiede SHA256Managed, che non è compatibile con FIPS.

Commenti

.NET Framework include le implementazioni e i relativi valori hashName associati:

Implementazione Hashname
SHA256Managed SHA256
SHA-256
System.Security.Cryptography.SHA256
SHA256Cng System.Security.Cryptography.SHA256Cng
SHA256CryptoServiceProvider System.Security.Cryptography.SHA256CryptoServiceProvider

Vedi anche

Si applica a