HashAlgorithmBase

HashAlgorithmBase


Provides a base implementation for implementing hash algorithms.


Public:

Properties:

NameDescription
 Hash (get) Returns the computed hash.  

Methods:

NameDescription
 Clear Releases any resources being held by the hash algorithm.  
 ComputeHash Computes the hash on a source in its entirety.  
 Initialize Resets the base class to an initial state to begin computing the hash for a new set of values.  
 TransformBlock Continues to compute the hash value for blocks of data.  
 TransformFinalBlock Finalizes the hash computation by processing the last block of data.  

Remarks

The HashAlgorithmBase class provides base functionality for common task when computing a hash value on data within the VBCorLib library. This allows for an easier and more consistent implementation of the hash algorithms.

By implementing the IHashAlgorithm interface, an instance of HashAlgorithmBase will manage standard functions and validation of data. When needed, the base class will call back into the IHashAlgorithm implementation for required data processing.

See Also

Project CorLib Overview

Class HashAlgorithmBase Overview

Constructors