System.Security.Cryptography.HashAlgorithm.TransformFinalBlock Method

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

Syntax

public byte[] TransformFinalBlock (byte[] inputBuffer, int inputOffset, int inputCount)

Parameters

inputBuffer
The input to compute the hash code for.
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.

Returns

An array that is a copy of the part of the input that is hashed.

Remarks

You must call the HashAlgorithm.TransformFinalBlock(Byte[], int, int) method after calling the HashAlgorithm.TransformBlock(Byte[], int, int, Byte[], int) method but before you retrieve the final hash value.

Note that the return value of this method is not the hash value, but only a copy of the hashed part of the input data. To retrieve the final hashed value after calling the HashAlgorithm.TransformFinalBlock(Byte[], int, int) method, get the byte array contained in the HashAlgorithm.Hash property.

Requirements

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0