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

IMac

public interface IMac
The base interface for implementations of message authentication codes (MACs).
namespace Org.BouncyCastle.Crypto { public interface IMac { string AlgorithmName { get; } void Init(ICipherParameters parameters); int GetMacSize(); void Update(byte input); void BlockUpdate(byte[] input, int inOff, int inLen); int DoFinal(byte[] output, int outOff); void Reset(); } }