IAeadCipher
A cipher mode that includes authenticated encryption with a streaming mode and optional
associated data.
using System;
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);
void ProcessAadBytes(ReadOnlySpan<byte> input);
int ProcessByte(byte input, byte[] outBytes, int outOff);
int ProcessByte(byte input, Span<byte> output);
int ProcessBytes(byte[] inBytes, int inOff, int len, byte[] outBytes, int outOff);
int ProcessBytes(ReadOnlySpan<byte> input, Span<byte> output);
int DoFinal(byte[] outBytes, int outOff);
int DoFinal(Span<byte> output);
byte[] GetMac();
int GetUpdateOutputSize(int len);
int GetOutputSize(int len);
void Reset();
}
}