Επεξεργασία

Κοινή χρήση μέσω


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
[<System.Runtime.InteropServices.ComVisible(true)>]
type RijndaelManagedTransform = class
    interface ICryptoTransform
    interface IDisposable
Public NotInheritable Class RijndaelManagedTransform
Implements ICryptoTransform
Inheritance
RijndaelManagedTransform
Attributes
Implements

Remarks

Important

The Rijndael class is the predecessor of the Aes algorithm. You should use the Aes algorithm instead of Rijndael. For more information, see the entry The Differences Between Rijndael and AES in the .NET Security blog.

Using this class is not recommended. If you use the Rijndael algorithm, 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

Gets the block size.

CanReuseTransform

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

CanTransformMultipleBlocks

Gets a value indicating whether multiple blocks can be transformed.

InputBlockSize

Gets the input block size.

OutputBlockSize

Gets the output block size.

Methods

Clear()

Releases all resources used by the RijndaelManagedTransform class.

Dispose()

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

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Reset()

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

ToString()

Returns a string that represents the current object.

(Inherited from Object)
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)

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

Explicit Interface Implementations

IDisposable.Dispose()

This API supports the product infrastructure and is not intended to be used directly from your code.

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Applies to

See also