RijndaelManagedTransform 类

定义

使用 Rijndael 算法执行数据的加密转换。 此类不能被继承。

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
继承
RijndaelManagedTransform
属性
实现

注解

重要

Rijndael 是该算法的前身 Aes 。 应使用 Aes 算法而不是 Rijndael。 有关详细信息,请参阅 .NET Security 博客中的条目 Rijndael 和 AES 之间的差异

不建议使用此类。 如果使用 算法Rijndael,更好的做法是与 对象一CryptoStream起使用RijndaelManaged。 对象 CryptoStream 处理直接使用 RijndaelManagedTransform 时可能发生的填充问题。 有关示例,请参阅 RijndaelManaged 类。

CreateEncryptorCreateDecryptor 方法都返回 类的实例,RijndaelManagedTransform该实例使用当前 RijndaelManaged 对象的键信息进行初始化。 若要使用 Rijndael 算法加密或解密数据,请将 RijndaelManagedTransform 这些方法返回的对象传递给 对象 CryptoStream

属性

BlockSizeValue

获取块大小。

CanReuseTransform

获取一个值,该值指示是否可重复使用当前转换。

CanTransformMultipleBlocks

获取一个值,该值指示是否可以转换多个块。

InputBlockSize

获取输入块大小。

OutputBlockSize

获取输出块大小。

方法

Clear()

释放 RijndaelManagedTransform 类使用的所有资源。

Dispose()

释放 RijndaelManagedTransform 类的当前实例所使用的所有资源。

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
Reset()

重置 RijndaelManagedTransform 的内部状态,这样就可将它再次用来进行其他加密或解密。

ToString()

返回表示当前对象的字符串。

(继承自 Object)
TransformBlock(Byte[], Int32, Int32, Byte[], Int32)

计算输入字节数组的指定区域的转换,并将所得到的转换复制到输出字节数组的指定区域。

TransformFinalBlock(Byte[], Int32, Int32)

计算指定字节数组的指定区域的转换。

显式接口实现

IDisposable.Dispose()

此 API 支持产品基础结构,不能在代码中直接使用。

执行与释放或重置非托管资源关联的应用程序定义的任务。

适用于

另请参阅