Skip to content
Bruce Wayne edited this page Jul 28, 2021 · 2 revisions

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

Data format extensions

KDF

Symmetric crypto

Clone this wiki locally