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

IMac

public interface IMac
The base interface for implementations of message authentication codes (MACs).
string AlgorithmName { get; }

The algorithm name.

void BlockUpdate(byte[] input, int inOff, int inLen)

Update the MAC with a block of bytes.

int DoFinal(byte[] output, int outOff)

Perform final calculations, producing the result MAC.

int GetMacSize()

Return the size, in bytes, of the MAC produced by this implementation.

void Init(ICipherParameters parameters)

Initialise the MAC.

void Reset()

Reset the MAC back to its initial state.

void Update(byte input)

Update the MAC with a single byte.