RijndaelManagedTransform.TransformBlock Method

Computes the transformation for the specified region of the input byte array and copies the resulting transformation to the specified region of the output byte array.

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

public int TransformBlock(
	byte[] inputBuffer,
	int inputOffset,
	int inputCount,
	byte[] outputBuffer,
	int outputOffset
)

Parameters

inputBuffer
Type: System.Byte[]

The input to perform the operation on.

inputOffset
Type: System.Int32

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

inputCount
Type: System.Int32

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

outputBuffer
Type: System.Byte[]

The output to write the data to.

outputOffset
Type: System.Int32

The offset into the output byte array to begin writing data from.

Return Value

Type: System.Int32
The number of bytes written.

Implements

ICryptoTransform.TransformBlock(Byte[], Int32, Int32, Byte[], Int32)

ExceptionCondition
ArgumentNullException

The inputBuffer parameter is null.

-or-

The outputBuffer parameter is null.

ArgumentException

The length of the input buffer is less than the sum of the input offset and the input count.

-or-

The value of the inputCount parameter is less than or equal to 0.

-or-

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

-or-

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

ArgumentOutOfRangeException

The value of the inputOffset parameter is negative.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft