InMemorySymmetricSecurityKey.GetDecryptionTransform(String, Byte[]) 方法
定义
获取一种使用指定的加密算法对密码文本进行解密的转换。Gets a transform that decrypts cipher text using the specified cryptographic algorithm.
public:
override System::Security::Cryptography::ICryptoTransform ^ GetDecryptionTransform(System::String ^ algorithm, cli::array <System::Byte> ^ iv);
public override System.Security.Cryptography.ICryptoTransform GetDecryptionTransform (string algorithm, byte[] iv);
override this.GetDecryptionTransform : string * byte[] -> System.Security.Cryptography.ICryptoTransform
Public Overrides 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.
例外
不支持 algorithm。algorithm is not supported. 支持的算法包括 TripleDesEncryption、Aes128Encryption、Aes192Encryption 和 Aes256Encryption。The supported algorithms are TripleDesEncryption, Aes128Encryption, Aes192Encryption, and Aes256Encryption.
注解
使用 SecurityAlgorithms 类中表示解密算法的字段来指定算法。Use the fields that represent decryption algorithms in the SecurityAlgorithms class to specify the algorithm.