MACTripleDES: ComputeHash

ComputeHash

Computes the hash on a source in its entirety.



 Public Function ComputeHash(
	  ByRef Source As Variant,
	  Optional ByRef Index As Variant,
	  Optional ByRef Count As Variant ) As Byte ( )

Parameters

Source
[ByRef] Variant. The source of data compute the hash for. This can be a byte array or object implementing the Stream interface.
Index
[ByRef] Optional. Variant. The starting index in a byte array source. If the source is not a byte array, this argument is ignored.
Count
[ByRef] Optional. Variant. The number of bytes to compute the hash on. If the source is not a byte array, this argument is ignored.

Return Values

Byte() -  The hash value computed from the source provided.

Remarks

If the source is a Stream based object, then the stream is read from and the hash continuously computed until the stream no longer returns data.

If data has already been processed using TransformBlock, then that data will be included in the hashing process.

See Also

Project CorLib Overview

Class MACTripleDES Overview