InMemorySymmetricSecurityKey.GetEncryptionTransform(String, Byte[]) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取使用指定的加密算法加密 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 的加密算法。
返回
表示加密转换的一个 ICryptoTransform 。
例外
不支持 algorithm。 支持的算法是TripleDesEncryption,Aes128EncryptionAes192Encryption和Aes256Encryption。
注解
使用表示类中的 SecurityAlgorithms 加密算法的字段来指定算法。