Język

InMemorySymmetricSecurityKey.GetEncryptionTransform(String, Byte[]) Metoda

Definicja

Pobiera przekształcenie, które szyfruje kod XML przy użyciu określonego algorytmu kryptograficznego.

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

Algorytm kryptograficzny, który szyfruje kod XML.

iv
Byte[]

Tablica zawierająca Byte wektor inicjalizacji (IV) dla określonego algorytmu.

Zwraca

Element ICryptoTransform reprezentujący przekształcenie szyfrowania.

Wyjątki

algorithm nie jest obsługiwana. Obsługiwane algorytmy to TripleDesEncryption, , Aes128EncryptionAes192Encryptioni Aes256Encryption.

Uwagi

Użyj pól reprezentujących algorytmy szyfrowania w SecurityAlgorithms klasie, aby określić algorytm.

Dotyczy