Rijndael 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示对称加密算法的所有实现必须继承的 Rijndael 基类。
public ref class Rijndael abstract : System::Security::Cryptography::SymmetricAlgorithm
public abstract class Rijndael : System.Security.Cryptography.SymmetricAlgorithm
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class Rijndael : System.Security.Cryptography.SymmetricAlgorithm
type Rijndael = class
inherit SymmetricAlgorithm
[<System.Runtime.InteropServices.ComVisible(true)>]
type Rijndael = class
inherit SymmetricAlgorithm
Public MustInherit Class Rijndael
Inherits SymmetricAlgorithm
- 继承
- 派生
- 属性
注解
此算法支持密钥长度为 128、192 或 256 位;默认为 256 位。 此算法支持块大小为 128、192 或 256 位;默认为 128 位(Aes兼容)。
Important
该Rijndael类是Aes算法的前身。 应使用 Aes 算法而不是 Rijndael。 有关详细信息,请参阅 .NET 安全博客中的条目 Rijndael 与 AES 之间的差异。
构造函数
| 名称 | 说明 |
|---|---|
| Rijndael() |
初始化 的新 Rijndael实例。 |
字段
| 名称 | 说明 |
|---|---|
| BlockSizeValue |
表示加密操作的块大小(以位为单位)。 (继承自 SymmetricAlgorithm) |
| FeedbackSizeValue |
表示加密操作的反馈大小(以位为单位)。 (继承自 SymmetricAlgorithm) |
| IVValue |
表示对称算法的初始化向量(IV)。 (继承自 SymmetricAlgorithm) |
| KeySizeValue |
表示对称算法使用的密钥的大小(以位为单位)。 (继承自 SymmetricAlgorithm) |
| KeyValue |
表示对称算法的密钥。 (继承自 SymmetricAlgorithm) |
| LegalBlockSizesValue |
指定对称算法支持的块大小(以位为单位)。 (继承自 SymmetricAlgorithm) |
| LegalKeySizesValue |
指定对称算法支持的密钥大小(以位为单位)。 (继承自 SymmetricAlgorithm) |
| ModeValue |
表示对称算法中使用的密码模式。 (继承自 SymmetricAlgorithm) |
| PaddingValue |
表示对称算法中使用的填充模式。 (继承自 SymmetricAlgorithm) |
属性
| 名称 | 说明 |
|---|---|
| BlockSize |
获取或设置加密操作的块大小(以位为单位)。 (继承自 SymmetricAlgorithm) |
| FeedbackSize |
获取或设置密码反馈(CFB)和输出反馈(OFB)密码模式的加密操作的反馈大小(以位为单位)。 (继承自 SymmetricAlgorithm) |
| IV |
获取或设置对称算法的初始化向量(IV)。 (继承自 SymmetricAlgorithm) |
| Key |
获取或设置对称算法的密钥。 (继承自 SymmetricAlgorithm) |
| KeySize |
获取或设置对称算法使用的密钥的大小(以位为单位)。 (继承自 SymmetricAlgorithm) |
| LegalBlockSizes |
获取对称算法支持的块大小(以位为单位)。 (继承自 SymmetricAlgorithm) |
| LegalKeySizes |
获取对称算法支持的密钥大小(以位为单位)。 (继承自 SymmetricAlgorithm) |
| Mode |
获取或设置对称算法操作的模式。 (继承自 SymmetricAlgorithm) |
| Padding |
获取或设置对称算法中使用的填充模式。 (继承自 SymmetricAlgorithm) |
方法
显式接口实现
| 名称 | 说明 |
|---|---|
| IDisposable.Dispose() |
此 API 支持产品基础结构,不能在代码中直接使用。 释放由托管资源使用 SymmetricAlgorithm 的非托管资源,并选择性地释放托管资源。 (继承自 SymmetricAlgorithm) |