ICryptoTransform.TransformFinalBlock Method (Byte[], Int32, Int32)

 

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 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
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: