Export (0) Print
Expand All

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
[C#]
public virtual byte[] TransformFinalBlock(
 byte[] inputBuffer,
 int inputOffset,
 int inputCount
);
[C++]
public: virtual unsigned char TransformFinalBlock(
 unsigned char inputBuffer __gc[],
 int inputOffset,
 int inputCount
)  __gc[];
[JScript]
public function TransformFinalBlock(
   inputBuffer : Byte[],
 inputOffset : int,
 inputCount : int
) : Byte[];

Parameters

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

Return Value

The computed hash code.

Implements

ICryptoTransform.TransformFinalBlock

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft