TripleDESCryptoServiceProvider 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Derived cryptographic types are obsolete. Use the Create method on the base type instead.
定义用于访问算法的加密服务提供程序 (CSP) 版本的 TripleDES 包装对象。 此类不能被继承。
public ref class TripleDESCryptoServiceProvider sealed : System::Security::Cryptography::TripleDES
[System.Obsolete("Derived cryptographic types are obsolete. Use the Create method on the base type instead.", DiagnosticId="SYSLIB0021", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public sealed class TripleDESCryptoServiceProvider : System.Security.Cryptography.TripleDES
public sealed class TripleDESCryptoServiceProvider : System.Security.Cryptography.TripleDES
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class TripleDESCryptoServiceProvider : System.Security.Cryptography.TripleDES
[<System.Obsolete("Derived cryptographic types are obsolete. Use the Create method on the base type instead.", DiagnosticId="SYSLIB0021", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type TripleDESCryptoServiceProvider = class
inherit TripleDES
type TripleDESCryptoServiceProvider = class
inherit TripleDES
[<System.Runtime.InteropServices.ComVisible(true)>]
type TripleDESCryptoServiceProvider = class
inherit TripleDES
Public NotInheritable Class TripleDESCryptoServiceProvider
Inherits TripleDES
- 继承
- 属性
注解
TripleDESCryptoServiceProvider 已过时。 请改用该方法 TripleDES.Create() 。
注释
新的对称加密算法高级加密标准(AES)可用。 请考虑使用 AesCryptoServiceProvider 类而不是 TripleDESCryptoServiceProvider 类。 仅用于 TripleDESCryptoServiceProvider 与旧应用程序和数据的兼容性。
构造函数
| 名称 | 说明 |
|---|---|
| TripleDESCryptoServiceProvider() |
已过时.
初始化 TripleDESCryptoServiceProvider 类的新实例。 |
字段
| 名称 | 说明 |
|---|---|
| BlockSizeValue |
已过时.
表示加密操作的块大小(以位为单位)。 (继承自 SymmetricAlgorithm) |
| FeedbackSizeValue |
已过时.
表示加密操作的反馈大小(以位为单位)。 (继承自 SymmetricAlgorithm) |
| IVValue |
已过时.
表示对称算法的初始化向量(IV)。 (继承自 SymmetricAlgorithm) |
| KeySizeValue |
已过时.
表示对称算法使用的密钥的大小(以位为单位)。 (继承自 SymmetricAlgorithm) |
| KeyValue |
已过时.
表示对称算法的密钥。 (继承自 SymmetricAlgorithm) |
| LegalBlockSizesValue |
已过时.
指定对称算法支持的块大小(以位为单位)。 (继承自 SymmetricAlgorithm) |
| LegalKeySizesValue |
已过时.
指定对称算法支持的密钥大小(以位为单位)。 (继承自 SymmetricAlgorithm) |
| ModeValue |
已过时.
表示对称算法中使用的密码模式。 (继承自 SymmetricAlgorithm) |
| PaddingValue |
已过时.
表示对称算法中使用的填充模式。 (继承自 SymmetricAlgorithm) |
属性
| 名称 | 说明 |
|---|---|
| BlockSize |
已过时.
获取或设置加密操作的块大小(以位为单位)。 |
| BlockSize |
已过时.
获取或设置加密操作的块大小(以位为单位)。 (继承自 SymmetricAlgorithm) |
| FeedbackSize |
已过时.
获取或设置密码反馈(CFB)和输出反馈(OFB)密码模式的加密操作的反馈大小(以位为单位)。 |
| FeedbackSize |
已过时.
获取或设置密码反馈(CFB)和输出反馈(OFB)密码模式的加密操作的反馈大小(以位为单位)。 (继承自 SymmetricAlgorithm) |
| IV |
已过时.
获取或设置对称算法的初始化向量(IV)。 |
| IV |
已过时.
获取或设置对称算法的初始化向量(IV)。 (继承自 SymmetricAlgorithm) |
| Key |
已过时.
获取或设置算法的 TripleDES 密钥。 |
| Key |
已过时.
获取或设置算法的 TripleDES 密钥。 (继承自 TripleDES) |
| KeySize |
已过时.
获取或设置密钥的大小(以位为单位)。 |
| KeySize |
已过时.
获取或设置对称算法使用的密钥的大小(以位为单位)。 (继承自 SymmetricAlgorithm) |
| LegalBlockSizes |
已过时.
获取对称算法支持的块大小(以位为单位)。 |
| LegalKeySizes |
已过时.
获取对称算法支持的密钥大小(以位为单位)。 |
| Mode |
已过时.
获取或设置对称算法操作的模式。 |
| Mode |
已过时.
获取或设置对称算法操作的模式。 (继承自 SymmetricAlgorithm) |
| Padding |
已过时.
获取或设置对称算法中使用的填充模式。 |
| Padding |
已过时.
获取或设置对称算法中使用的填充模式。 (继承自 SymmetricAlgorithm) |
方法
显式接口实现
| 名称 | 说明 |
|---|---|
| IDisposable.Dispose() |
此 API 支持产品基础结构,不能在代码中直接使用。
已过时.
释放由托管资源使用 SymmetricAlgorithm 的非托管资源,并选择性地释放托管资源。 (继承自 SymmetricAlgorithm) |