InMemorySymmetricSecurityKey.GetEncryptionTransform(String, Byte[]) Metoda

Definicja

Pobiera przekształcenie szyfrujące 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 program nie jest obsługiwany. Obsługiwane algorytmy to TripleDesEncryption, , Aes128EncryptionAes192Encryptioni Aes256Encryption.

Uwagi

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

Dotyczy