SymmetricSecurityKey.GetDecryptionTransform(String, Byte[]) 方法
定义
在派生类中重写时,获取一个使用指定的加密算法解密密码文本的转换。When overridden in a derived class, gets a transform that decrypts cipher text using the specified cryptographic algorithm.
public:
abstract System::Security::Cryptography::ICryptoTransform ^ GetDecryptionTransform(System::String ^ algorithm, cli::array <System::Byte> ^ iv);
public abstract System.Security.Cryptography.ICryptoTransform GetDecryptionTransform (string algorithm, byte[] iv);
abstract member GetDecryptionTransform : string * byte[] -> System.Security.Cryptography.ICryptoTransform
Public MustOverride Function GetDecryptionTransform (algorithm As String, iv As Byte()) As ICryptoTransform
参数
- algorithm
- String
一种对密码文本(例如加密的 XML)进行解密的加密算法。A cryptographic algorithm that decrypts cipher text, such as encrypted XML.
- iv
- Byte[]
一个 Byte 数组,它包含指定算法的初始化向量 (IV)。An array of Byte that contains the initialization vector (IV) for the specified algorithm.
返回
一个表示解密转换的 ICryptoTransform。An ICryptoTransform that represents the decryption transform.
注解
使用 SecurityAlgorithms 类中表示解密算法的字段来指定算法。Use the fields that represent decryption algorithms in the SecurityAlgorithms class to specify the algorithm.