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

IAeadCipher

public interface IAeadCipher
A cipher mode that includes authenticated encryption with a streaming mode and optional associated data.
namespace Org.BouncyCastle.Crypto.Modes { public interface IAeadCipher { string AlgorithmName { get; } void Init(bool forEncryption, ICipherParameters parameters); void ProcessAadByte(byte input); void ProcessAadBytes(byte[] inBytes, int inOff, int len); int ProcessByte(byte input, byte[] outBytes, int outOff); int ProcessBytes(byte[] inBytes, int inOff, int len, byte[] outBytes, int outOff); int DoFinal(byte[] outBytes, int outOff); byte[] GetMac(); int GetUpdateOutputSize(int len); int GetOutputSize(int len); void Reset(); } }