SHA1CryptoServiceProvider: TransformBlock

TransformBlock

Computes the hash for the specified block of data.



 Public Function TransformBlock(
	  ByRef InputBuffer ( ) As Byte,
	  ByVal InputOffset As Long,
	  ByVal InputCount As Long,
	  ByRef OutputBuffer ( ) As Byte,
	  ByVal OutputOffset As Long ) As Long

Parameters

InputBuffer
[ByRef] Byte. The data to compute the hash from.
InputOffset
[ByVal] Long. The starting index in the input data to compute the hash.
InputCount
[ByVal] Long. The number of bytes to compute the hash from.
OutputBuffer
[ByRef] Byte. The array to place the input buffer bytes in.
OutputOffset
[ByVal] Long. The starting index to beging copying the bytes to.

Return Values

Long -  The number of bytes processed.

Remarks

The OutputBuffer will contain the same data as the InputBuffer. No hash values are placed in the OutputBuffer.

If the OutputBuffer is a Null Array, or is the same array as the InputBuffer and the OutputOffset equals the InputOffset, then nothing is copied, however, the hash is still computed on the InputBuffer data.

The TransformFinalBlock needs to be called to finish computing the hash, this method alone cannot compute the entire hash.

See Also

Project CorLib Overview

Class SHA1CryptoServiceProvider Overview