package hacl-star

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Portable C implementation of HMAC-SHA-384

For Poly1305, buffers have the following size constraints:

  • key: 32 bytes
  • output buffer: 16 bytes

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.

type bytes = SharedDefs.CBytes.t
val mac : key:bytes -> msg:bytes -> bytes

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

module Noalloc : sig ... end

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

OCaml

Innovation. Community. Security.