Constructors: NewHashAlgorithmBase

NewHashAlgorithmBase

Creates a HashAlgorithmBase object used by hash algorithms.



 Public Function NewHashAlgorithmBase(
	  ByVal Callback As IHashAlgorithm,
	  Optional ByVal KeepWeakReference As Boolean,
	  Optional ByVal UseBuffer As Boolean,
	  Optional ByVal BlockSize As Long ) As HashAlgorithmBase

Parameters

Callback
[ByVal] IHashAlgorithm. Used to call back into the specifics of an algorithm implementation.
KeepWeakReference
[ByVal] Optional. Boolean. Indicates if the base class should maintain a weak reference to the Callback object to prevent a circular reference from occuring if the Callback object is the same object as the one instantiating this instance.
UseBuffer
[ByVal] Optional. Boolean. Indicates if the internal buffering mechanism in the base class should be used, or if all data should be passed to the Callback object to allow custom buffering.
BlockSize
[ByVal] Optional. Long. The size of the byte block that is processed at a time by the specific algorithm using this base class. This is to help with the buffering.

Return Values

HashAlgorithmBase -  A new HashAlgorithmBase object.

Remarks

This base class can handle most hash algorithm implementation requirement except for the specifics of a hash algorithm. That is where the Callback is used.

See Also

Project CorLib Overview

Class Constructors Overview

HashAlgorithmBase