HMACBase: ComputeHash

ComputeHash

Computes the hash code for the specific source.



 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 to compute the hash for. This can be a byte array or Stream based object.
Index
[ByRef] Optional. Variant. The starting index in the byte array to begin compute the hash. This is ignored for Stream objects.
Count
[ByRef] Optional. Variant. The number of bytes to used to compute the hash in a byte array. This is ignored for Stream objects.

Return Values

Byte() -  The computed hash.

Remarks

For Stream objects, the stream is continuously read from and the hash computed until the stream contains no data.

See Also

Project CorLib Overview

Class HMACBase Overview