Module Hacl.Poly1305_128Source

Vectorized C implementation of Poly1305 that runs on platforms with 128-bit vector support

For Poly1305, buffers have the following size constraints:

For HMAC with SHA-2, the output buffer is the same size as the digest size of the corresponding hash function (see here). For HMAC with BLAKE2, the output buffer is 64 bytes for BLAKE2b and 32 bytes for BLAKE2s.

Sourceval mac : key:bytes -> msg:bytes -> bytes

mac key msg computes the MAC of msg using key key.

Sourcemodule Noalloc : sig ... end

Version of this function which writes its output in a buffer passed in as an argument