InMemorySymmetricSecurityKey.GetEncryptionTransform(String, Byte[]) 方法

定义

获取使用指定的加密算法加密 XML 的转换。

public:
 override System::Security::Cryptography::ICryptoTransform ^ GetEncryptionTransform(System::String ^ algorithm, cli::array <System::Byte> ^ iv);
public override System.Security.Cryptography.ICryptoTransform GetEncryptionTransform(string algorithm, byte[] iv);
override this.GetEncryptionTransform : string * byte[] -> System.Security.Cryptography.ICryptoTransform
Public Overrides Function GetEncryptionTransform (algorithm As String, iv As Byte()) As ICryptoTransform

参数

algorithm
String

加密 XML 的加密算法。

iv
Byte[]

一个数组 Byte ,其中包含指定算法的初始化向量(IV)。

返回

表示加密转换的一个 ICryptoTransform

例外

注解

使用表示类中的 SecurityAlgorithms 加密算法的字段来指定算法。

适用于