<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0" />

Org.BouncyCastle.Crypto.Modes.IAeadCipher

public interface IAeadCipher
A cipher mode that includes authenticated encryption with a streaming mode and optional associated data.
string AlgorithmName { get; }

The name of the algorithm this cipher implements.

int DoFinal(byte[] outBytes, int outOff)

Finish the operation, generating or verifying the MAC.

byte[] GetMac()

Return the Message Authentication Code (MAC) generated or verified by the cipher.

int GetOutputSize(int len)

Return the size of the output buffer required for a ProcessBytes plus a DoFinal call with len bytes.

int GetUpdateOutputSize(int len)

Return the size of the output buffer required for a ProcessBytes call with len bytes.

void Init(bool forEncryption, ICipherParameters parameters)

Initialise the cipher.

void ProcessAadByte(byte input)

Add a single byte to the associated data check.

void ProcessAadBytes(byte[] inBytes, int inOff, int len)

Add a sequence of bytes to the associated data check.

int ProcessByte(byte input, byte[] outBytes, int outOff)

Process a single byte of data.

int ProcessBytes(byte[] inBytes, int inOff, int len, byte[] outBytes, int outOff)

Process a sequence of bytes from the input buffer.

void Reset()

Reset the cipher to the same state as it was after the last init (if there was one).