DESCryptoServiceProvider.CreateDecryptor 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CreateDecryptor() | |
CreateDecryptor(Byte[], Byte[]) |
CreateDecryptor()
public:
override System::Security::Cryptography::ICryptoTransform ^ CreateDecryptor();
public override System.Security.Cryptography.ICryptoTransform CreateDecryptor ();
override this.CreateDecryptor : unit -> System.Security.Cryptography.ICryptoTransform
Public Overrides Function CreateDecryptor () As ICryptoTransform
返回
对称解密器对象。
注解
此方法对使用相同签名的 重载 CreateEncryptor 创建的加密消息进行解密。
适用于
CreateDecryptor(Byte[], Byte[])
public:
override System::Security::Cryptography::ICryptoTransform ^ CreateDecryptor(cli::array <System::Byte> ^ rgbKey, cli::array <System::Byte> ^ rgbIV);
public override System.Security.Cryptography.ICryptoTransform CreateDecryptor (byte[] rgbKey, byte[]? rgbIV);
public override System.Security.Cryptography.ICryptoTransform CreateDecryptor (byte[] rgbKey, byte[] rgbIV);
override this.CreateDecryptor : byte[] * byte[] -> System.Security.Cryptography.ICryptoTransform
Public Overrides Function CreateDecryptor (rgbKey As Byte(), rgbIV As Byte()) As ICryptoTransform
参数
- rgbKey
- Byte[]
用于对称算法的密钥。
- rgbIV
- Byte[]
用于对称算法的初始化向量。
返回
对称 DES 解密器对象。
例外
或 - Mode 属性的值为 CFB,而 FeedbackSize 属性的值不是 8。
或 - 使用了无效的密钥大小。
或 - 算法密钥大小不可用。
注解
此方法对使用相同参数的 重载创建的加密 CreateEncryptor 消息进行解密。