package digestif

  1. Overview
  2. Docs

Some hash algorithms expose extra MAC constructs. The interface is similar to the hmac_* functions in S.

type t
val mac_bytes : key:Stdlib.Bytes.t -> ?off:int -> ?len:int -> Stdlib.Bytes.t -> t
val mac_string : key:Stdlib.String.t -> ?off:int -> ?len:int -> Stdlib.String.t -> t
val mac_bigstring : key:bigstring -> ?off:int -> ?len:int -> bigstring -> t
val maci_bytes : key:Stdlib.Bytes.t -> Stdlib.Bytes.t iter -> t
val maci_string : key:Stdlib.String.t -> Stdlib.String.t iter -> t
val maci_bigstring : key:bigstring -> bigstring iter -> t
val macv_bytes : key:Stdlib.Bytes.t -> Stdlib.Bytes.t list -> t
val macv_string : key:Stdlib.String.t -> Stdlib.String.t list -> t
val macv_bigstring : key:bigstring -> bigstring list -> t
OCaml

Innovation. Community. Security.