HashAlgorithm Class
Represents the base class from which all implementations of cryptographic hash algorithms must derive.
Definition
Members Table
The following table lists the members exposed by the HashAlgorithm object. Click a tab on the left to choose the type of member you want to view.
Methods
| Method | Description |
|---|
| Clear | Releases all resources used by the HashAlgorithm. |
| ComputeHash | Overloaded. Computes the hash value for the input data. |
| Dispose | Overloaded. (Inherited from IDisposable) |
| Equals | Overloaded. Compares two objects to determine if they are equal. (Inherited from Object) |
| GetHashCode | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| HashAlgorithm | Initializes a new instance of HashAlgorithm. |
| HashCore | When overridden in a derived class, routes data written to the object into the hash algorithm for computing the hash. |
| HashFinal | When overridden in a derived class, finalizes the hash computation after the last data is processed by the cryptographic stream object. |
| Initialize | Initializes an implementation of HashAlgorithm. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object) |
| System.IDisposable.Dispose | Releases the unmanaged resources used by the HashAlgorithm. |
| ToString | Returns a String that represents the current Object. (Inherited from Object) |
Properties
| Property | Description |
|---|
| CanReuseTransform | Gets a value indicating whether the current transform can be reused. |
| CanTransformMultipleBlocks | When overridden in a derived class, gets a value indicating whether multiple blocks can be transformed. |
| Hash | Gets the value of the computed hash code. |
| HashSize | Gets the size of the computed hash code in bits. |
| InputBlockSize | When overridden in a derived class, gets the input block size. |
| OutputBlockSize | When overridden in a derived class, gets the output block size. |
Fields
| Field | Description |
|---|
| hashSizeValue | Represents the size of the computed hash code. |
| hashValue | Represents the value of the computed hash code. |
| state | Represents the state of the hash computation. |
Inheritance Hierarchy
Object
Class Information