System.Security.Cryptography.HashAlgorithm: Method Members

The methods of System.Security.Cryptography.HashAlgorithm are listed below. For a list of all members, see the HashAlgorithm Members list.

See Also: Inherited members from System.Object

Public Methods

Clear()

Releases all resources used by the System.Security.Cryptography.HashAlgorithm class.

ComputeHash(byte[]) : byte[]

Computes the hash value for the specified byte array.

ComputeHash(System.IO.Stream) : byte[]

Computes the hash value for the specified System.IO.Stream object.

ComputeHash(byte[], int, int) : byte[]

Computes the hash value for the specified region of the specified byte array.

static
Create() : HashAlgorithm

Creates an instance of the default implementation of a hash algorithm.

static
Create(string) : HashAlgorithm

Creates an instance of the specified implementation of a hash algorithm.

Dispose()

Releases all resources used by the current instance of the System.Security.Cryptography.HashAlgorithm class.

abstract
Initialize()

Initializes an implementation of the System.Security.Cryptography.HashAlgorithm class.

TransformBlock(byte[], int, int, byte[], int) : int

Computes the hash value for the specified region of the input byte array and copies the specified region of the input byte array to the specified region of the output byte array.

TransformFinalBlock(byte[], int, int) : byte[]

Computes the hash value for the specified region of the specified byte array.

Protected Methods

Dispose(bool)

Releases the unmanaged resources used by the System.Security.Cryptography.HashAlgorithm and optionally releases the managed resources.

abstract
HashCore(byte[], int, int)

When overridden in a derived class, routes data written to the object into the hash algorithm for computing the hash.

abstract
HashFinal() : byte[]

When overridden in a derived class, finalizes the hash computation after the last data is processed by the cryptographic stream object.