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

Org.BouncyCastle.Crypto.Engines.Grain128AeadEngine

public sealed class Grain128AeadEngine : IAeadCipher
namespace Org.BouncyCastle.Crypto.Engines { public sealed class Grain128AeadEngine : IAeadCipher { public string AlgorithmName { get; } public Grain128AeadEngine(); public void Init(bool forEncryption, ICipherParameters param); public int GetOutputSize(int len); public int GetUpdateOutputSize(int len); 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 int DoFinal(byte[] output, int outOff); public byte[] GetMac(); public void Reset(); public byte ReturnByte(byte input); } }