MD5CryptoServiceProvider: 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 plain text data as the input buffer. No transformation of the data is applied. The OutputBuffer array can be a Null array or the same array as the InputBuffer. If the InputBuffer is used as the OutputBuffer and the InputOffset equals the OutputOffset, no data is copied.

Once this method is called, the Hash property cannot be called until the TransformFinalBlock is called, finishing the hash computation.

See Also

Project CorLib Overview

Class MD5CryptoServiceProvider Overview