HashAlgorithmBase

HashAlgorithmBase


Provides a base implementation for implementing hash algorithms.


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 VBCorLib Overview | Constructors

Public:

Properties:

NameDescription
 Hash (get)Returns the computed hash. 

Methods:

NameDescription
 ClearReleases any resources being held by the hash algorithm. 
 ComputeHashComputes the hash on a source in its entirety. 
 InitializeResets the base class to an initial state to begin computing the hash for a new set of values. 
 TransformBlockContinues to compute the hash value for blocks of data. 
 TransformFinalBlockFinalizes the hash computation by processing the last block of data.