SHA256.Create Method

Definition

Overloads

Create()

Creates an instance of the default implementation of SHA256.

Create(String)

Creates an instance of a specified implementation of SHA256.

Create()

Creates an instance of the default implementation of SHA256.

public static System.Security.Cryptography.SHA256 Create ();
Returns

A new instance of SHA256.

Exceptions

The algorithm was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.

Create(String)

Creates an instance of a specified implementation of SHA256.

public static System.Security.Cryptography.SHA256 Create (string hashName);
Parameters
hashName
String

The name of the specific implementation of SHA256 to be used.

Returns

A new instance of SHA256 using the specified implementation.

Exceptions

The algorithm described by the hashName parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.