Sdílet prostřednictvím


InMemorySymmetricSecurityKey.GetEncryptionTransform(String, Byte[]) Metoda

Definice

Získá transformaci, která šifruje XML pomocí zadaného kryptografického algoritmu.

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

Parametry

algorithm
String

Kryptografický algoritmus, který šifruje XML.

iv
Byte[]

Pole Byte obsahující inicializační vektor (IV) pro zadaný algoritmus.

Návraty

Představuje ICryptoTransform transformaci šifrování.

Výjimky

algorithm se nepodporuje. Podporované algoritmy jsou TripleDesEncryption, Aes128Encryption, Aes192Encryptiona Aes256Encryption.

Poznámky

Pomocí polí, která představují šifrovací algoritmy ve SecurityAlgorithms třídě, zadejte algoritmus.

Platí pro