AesGcm.Encrypt Method
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Security.dll (version 7.0.9083)
Encrypt(Byte[], Byte[], Byte[], Byte[], Byte[])
Encrypts plaintext data and computes the authentication tag.
Declaration
public void Encrypt(byte[] nonce, byte[] plaintext, byte[] ciphertext, byte[] authTag, byte[] additionalAuthData = null)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | nonce | The nonce associated with this message, which should be unique for every operation with the same key. |
Byte[] | plaintext | The data to encrypt. |
Byte[] | ciphertext | The byte array to store the encrypted data to. |
Byte[] | authTag | The byte array to store the computed authentication tag to. |
Byte[] | additionalAuthData | Additional authenticated data (AAD) associated with this message, which must also be provided during decryption. |