This documentation is archived and is not being maintained.

HashAlgorithm.TransformFinalBlock Method

Computes the hash value for the specified region of the specified byte array.

[Visual Basic]
Public Overridable Function TransformFinalBlock( _
   ByVal inputBuffer() As Byte, _
   ByVal inputOffset As Integer, _
   ByVal inputCount As Integer _
) As Byte() Implements ICryptoTransform.TransformFinalBlock
public virtual byte[] TransformFinalBlock(
 byte[] inputBuffer,
 int inputOffset,
 int inputCount
public: virtual unsigned char TransformFinalBlock(
 unsigned char inputBuffer __gc[],
 int inputOffset,
 int inputCount
)  __gc[];
public function TransformFinalBlock(
   inputBuffer : Byte[],
 inputOffset : int,
 inputCount : int
) : Byte[];


The input for which to compute the hash code.
The offset into the byte array from which to begin using data.
The number of bytes in the byte array to use as data.

Return Value

The computed hash code.




This method is used in conjunction with the TransformBlock method and must be called before the hash value is created. This method takes as parameters the input array, the offset to begin hashing, and the number of bytes to hash. Note that the output of this method is not in fact the hash value, but a copy of the part of the input array that is hashed. To view the actual hash value, you must examine the Hash value after calling this method.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

HashAlgorithm Class | HashAlgorithm Members | System.Security.Cryptography Namespace | Cryptographic Services