InMemorySymmetricSecurityKey.GetDecryptionTransform(String, Byte[]) Metod

Definition

Hämtar en transformering som dekrypterar chiffertext med den angivna kryptografiska algoritmen.

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

Parametrar

algorithm
String

En kryptografisk algoritm som dekrypterar chiffertext, till exempel krypterad XML.

iv
Byte[]

En matris med Byte som innehåller initieringsvektorn (IV) för den angivna algoritmen.

Returer

En ICryptoTransform som representerar dekrypteringstransformeringen.

Undantag

algorithm stöds inte. De algoritmer som stöds är TripleDesEncryption, Aes128Encryption, Aes192Encryptionoch Aes256Encryption.

Kommentarer

Använd fälten som representerar dekrypteringsalgoritmer i SecurityAlgorithms klassen för att ange algoritmen.

Gäller för