SHA256.Create 메서드

정의

이 추상 클래스의 특정 구현을 인스턴스화할 수 있습니다.

오버로드

Name Description
Create()

의 기본 구현 인스턴스를 SHA256만듭니다.

Create(String)
사용되지 않음.

지정된 구현 SHA256의 인스턴스를 만듭니다.

Create()

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

의 기본 구현 인스턴스를 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

반품

의 새 인스턴스입니다 SHA256. .NET Framework에서 이 메서드는 FIPS 모드가 활성화되지 않은 경우 SHA256Managed 클래스의 인스턴스를 만듭니다. FIPS 모드가 활성화된 경우 SHA256Cng 클래스의 인스턴스를 만듭니다. .NET Core에서는 SHA256 파생된 프라이빗 클래스의 인스턴스를 반환합니다.

예외

.NET Framework 4.6.1 및 이전 버전에서만 해당: 알고리즘은 FIPS(Federal Information Processing Standards) 모드를 사용하도록 설정되었지만 FIPS와 호환되지 않습니다.

추가 정보

적용 대상

Create(String)

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

주의

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

지정된 구현 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

매개 변수

hashName
String

사용할 특정 구현의 SHA256 이름입니다.

반품

지정된 구현을 SHA256 사용하는 새 인스턴스입니다.

특성

예외

.NET 프레임워크에서만: FIPS 모드가 사용되지만 FIPS와 호환되지 않는 hashName 요청 SHA256Managed.

설명

.NET Framework에는 구현과 연결된 hashName 값이 포함됩니다.

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

추가 정보

적용 대상