AesGcm.Decrypt Method
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Security.dll (version 7.0.9083)
Decrypt(Byte[], Byte[], Byte[], Byte[], Byte[])
Decrypts ciphertext data and validates the authentication tag.
Declaration
public void Decrypt(byte[] nonce, byte[] ciphertext, byte[] authTag, byte[] plaintext, byte[] additionalAuthData = null)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | nonce | The nonce associated with this message, which was used during encryption. |
Byte[] | ciphertext | The encrypted data to decrypt. |
Byte[] | authTag | The authentication tag computed for this message during encryption. |
Byte[] | plaintext | The byte array to store the decrypted data to. |
Byte[] | additionalAuthData | Additional authenticated data (AAD) associated with this message, which was used during encryption. |