Export (0) Print
Expand All

RijndaelManagedTransform.TransformFinalBlock Method

Note: This method is new in the .NET Framework version 2.0.

Computes the transformation for the specified region of the specified byte array.

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

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

Parameters

inputBuffer

The input to perform the operation on.

inputOffset

The offset into the byte array to begin using data from.

inputCount

The number of bytes in the byte array to use as data.

Return Value

The computed transformation.

Exception typeCondition

ArgumentNullException

The inputBuffer parameter is a null reference (Nothing in Visual Basic).

ArgumentException

The value of the inputCount parameter is less than 0.

-or-

The value of the inputCount parameter is grater than the length of inputBuffer parameter.

ArgumentOutOfRangeException

The value of the inputOffset parameter is negative.

CryptographicException

The length of the inputCount parameter is not evenly devisable by input block size.

The following code example demonstrates how to call the TransformFinalBlock method to transform the final block of bytes. This code example is part of a larger example provided for the RijndaelManagedTransform class.

byte[] finalBytes = rijTransform.TransformFinalBlock(
    sourceBytes,
    currentPosition,
    sourceByteLength - currentPosition);

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0

.NET Compact Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft