Macs - HMBSbige/CryptoBase GitHub Wiki

Create

Ghash

IMac mac = GHashUtils.Create(ReadOnlySpan<byte> key);

HMAC

IMac mac = HmacUtils.Create(DigestType type, ReadOnlySpan<byte> key);

DigestType

Poly1305

IMac mac = Poly1305Utils.Create(ReadOnlySpan<byte> key);

Properties

Property Description
Name Name of the MAC
Length Output length of the MAC

Methods

Method Description
void Update(ReadOnlySpan<byte>) Update the state
void GetMac(Span<byte>) Get the hash value and reset the state
void Reset() Reset the state
void Dispose() Releases the resources
⚠️ **GitHub.com Fallback** ⚠️