RijndaelManagedTransform RijndaelManagedTransform RijndaelManagedTransform RijndaelManagedTransform Class

Definition

Performs a cryptographic transformation of data using the Rijndael algorithm. This class cannot be inherited.

public ref class RijndaelManagedTransform sealed : System::Security::Cryptography::ICryptoTransform
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class RijndaelManagedTransform : System.Security.Cryptography.ICryptoTransform
type RijndaelManagedTransform = class
    interface ICryptoTransform
    interface IDisposable
Public NotInheritable Class RijndaelManagedTransform
Implements ICryptoTransform
Inheritance
RijndaelManagedTransformRijndaelManagedTransformRijndaelManagedTransformRijndaelManagedTransform
Attributes
Implements

Remarks

Note

Using this class is not recommended. A better practice is to use RijndaelManaged with a CryptoStream object. The CryptoStream object handles the padding issues that can occur when using RijndaelManagedTransform directly. For an example, see the RijndaelManaged class.

Both the CreateEncryptor and CreateDecryptor methods return an instance of the RijndaelManagedTransform class that is initialized with the key information of the current RijndaelManaged object. To encrypt or decrypt data using the Rijndael algorithm, pass the RijndaelManagedTransform object returned by these methods to a CryptoStream object.

Properties

BlockSizeValue BlockSizeValue BlockSizeValue BlockSizeValue

Gets the block size.

CanReuseTransform CanReuseTransform CanReuseTransform CanReuseTransform

Gets a value indicating whether the current transform can be reused.

CanTransformMultipleBlocks CanTransformMultipleBlocks CanTransformMultipleBlocks CanTransformMultipleBlocks

Gets a value indicating whether multiple blocks can be transformed.

InputBlockSize InputBlockSize InputBlockSize InputBlockSize

Gets the input block size.

OutputBlockSize OutputBlockSize OutputBlockSize OutputBlockSize

Gets the output block size.

Methods

Clear() Clear() Clear() Clear()

Releases all resources used by the RijndaelManagedTransform class.

Dispose() Dispose() Dispose() Dispose()

Releases all resources used by the current instance of the RijndaelManagedTransform class.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Reset() Reset() Reset() Reset()

Resets the internal state of RijndaelManagedTransform so it can be used again to do a different encryption or decryption.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
TransformBlock(Byte[], Int32, Int32, Byte[], Int32) TransformBlock(Byte[], Int32, Int32, Byte[], Int32) TransformBlock(Byte[], Int32, Int32, Byte[], Int32) TransformBlock(Byte[], Int32, Int32, Byte[], Int32)

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.

TransformFinalBlock(Byte[], Int32, Int32) TransformFinalBlock(Byte[], Int32, Int32) TransformFinalBlock(Byte[], Int32, Int32) TransformFinalBlock(Byte[], Int32, Int32)

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

Explicit Interface Implementations

IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose()

Applies to