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

Org.BouncyCastle.Crypto.Modes.GcmBlockCipher

Implements the Galois/Counter mode (GCM) detailed in NIST Special Publication 800-38D.
namespace Org.BouncyCastle.Crypto.Modes { public sealed class GcmBlockCipher : IAeadBlockCipher, IAeadCipher { public string AlgorithmName { get; } public IBlockCipher UnderlyingCipher { get; } public GcmBlockCipher(IBlockCipher c); public GcmBlockCipher(IBlockCipher c, IGcmMultiplier m); public int GetBlockSize(); public void Init(bool forEncryption, ICipherParameters parameters); public byte[] GetMac(); public int GetOutputSize(int len); public int GetUpdateOutputSize(int len); public void ProcessAadByte(byte input); public void ProcessAadBytes(byte[] inBytes, 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 void Reset(); } }