Macs - HMBSbige/CryptoBase GitHub Wiki
IMac mac = GHashUtils.Create(ReadOnlySpan<byte> key);
IMac mac = HmacUtils.Create(DigestType type, ReadOnlySpan<byte> key);
IMac mac = Poly1305Utils.Create(ReadOnlySpan<byte> key);
Property | Description |
---|---|
Name | Name of the MAC |
Length | Output length of the MAC |
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 |