Decrypts ciphertext data and validates the authentication tag.
Namespace:
Rebex.Security.Cryptography
Assembly:
Rebex.Common (in Rebex.Common.dll)
Syntax
Visual Basic |
---|
Public Sub Decrypt ( _ nonce As Byte(), _ ciphertext As Byte(), _ authTag As Byte(), _ plaintext As Byte(), _ additionalAuthData As Byte() _ ) |
C# |
---|
public void Decrypt( byte[] nonce, byte[] ciphertext, byte[] authTag, byte[] plaintext, byte[] additionalAuthData ) |
Parameters
- nonce
- Type: array<System..::..Byte>[]()[][]
The nonce associated with this message, which was used during encryption.
- ciphertext
- Type: array<System..::..Byte>[]()[][]
The encrypted data to decrypt.
- authTag
- Type: array<System..::..Byte>[]()[][]
The authentication tag computed for this message during encryption.
- plaintext
- Type: array<System..::..Byte>[]()[][]
The byte array to store the decrypted data to.
- additionalAuthData
- Type: array<System..::..Byte>[]()[][]
Additional authenticated data (AAD) associated with this message, which was used during encryption.