System.Security.Cryptography.HashAlgorithm Members

The members of System.Security.Cryptography.HashAlgorithm are listed below.

See Also: Inherited members from System.Object

Protected Constructors

Initializes a new instance of the System.Security.Cryptography.HashAlgorithm class.

Protected Fields

HashSizeValueint.

Represents the size, in bits, of the computed hash code.

HashValuebyte[].

Represents the value of the computed hash code.

Stateint.

Represents the state of the hash computation.

Public Properties

[read-only]
CanReuseTransformbool.

Gets a value indicating whether the current transform can be reused.

[read-only]
CanTransformMultipleBlocksbool.

When overridden in a derived class, gets a value indicating whether multiple blocks can be transformed.

[read-only]
Hashbyte[].

Gets the value of the computed hash code.

[read-only]
HashSizeint.

Gets the size, in bits, of the computed hash code.

[read-only]
InputBlockSizeint.

When overridden in a derived class, gets the input block size.

[read-only]
OutputBlockSizeint.

When overridden in a derived class, gets the output block size.

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.

Explicitly Implemented Interface Members

IDisposable.Dispose

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