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

Grain128AeadEngine

public sealed class Grain128AeadEngine : IAeadCipher
public string AlgorithmName { get; }

public int DoFinal(byte[] output, int outOff)

public byte[] GetMac()

public int GetOutputSize(int len)

public int GetUpdateOutputSize(int len)

public void Init(bool forEncryption, ICipherParameters param)

public void ProcessAadByte(byte input)

public void ProcessAadBytes(byte[] input, int inOff, int len)

public int ProcessByte(byte input, byte[] output, int outOff)

public int ProcessBytes(byte[] input, int inOff, int len, byte[] output, int outOff)

public void Reset()

public byte ReturnByte(byte input)