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

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)

byte[] GetMac()

int GetOutputSize(int len)

int GetUpdateOutputSize(int len)

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)

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

void Reset()

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