Export (0) Print
Expand All

ICryptoTransform.TransformFinalBlock Method

Transforms the specified region of the specified byte array.

Namespace:  System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

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

Parameters

inputBuffer
Type: System.Byte[]
The input for which to compute the transform.
inputOffset
Type: System.Int32
The offset into the byte array from which to begin using data.
inputCount
Type: System.Int32
The number of bytes in the byte array to use as data.

Return Value

Type: System.Byte[]
The computed transform.

TransformFinalBlock(Byte[], Int32, Int32) is a special function for transforming the last block or a partial block in the stream. It returns a new array that contains the remaining transformed bytes. A new array is returned, because the amount of information returned at the end might be larger than a single block when padding is added.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2015 Microsoft