Partager via


AuthenticatedEncryptionProvider.Decrypt Method

Definition

Decrypts ciphertext into plaintext

public virtual byte[] Decrypt (byte[] ciphertext, byte[] authenticatedData, byte[] iv, byte[] authenticationTag);
abstract member Decrypt : byte[] * byte[] * byte[] * byte[] -> byte[]
override this.Decrypt : byte[] * byte[] * byte[] * byte[] -> byte[]
Public Overridable Function Decrypt (ciphertext As Byte(), authenticatedData As Byte(), iv As Byte(), authenticationTag As Byte()) As Byte()

Parameters

ciphertext
Byte[]

the encrypted text to decrypt.

authenticatedData
Byte[]

the authenticateData that is used in verification.

iv
Byte[]

the initialization vector used when creating the ciphertext.

authenticationTag
Byte[]

the authenticationTag that was created during the encyption.

Returns

Byte[]

decrypted ciphertext

Exceptions

authenticationTag is null or empty.

Thrown if the AES crypto operation threw. See inner exception.

Thrown if the internal SignatureProvider is disposed.

Applies to