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:Bytes.t -> ?off:int -> ?len:int -> Bytes.t -> t
val mac_string : key:String.t -> ?off:int -> ?len:int -> String.t -> t
val mac_bigstring : key:bigstring -> ?off:int -> ?len:int -> bigstring -> t
val maci_bytes : key:Bytes.t -> Bytes.t iter -> t
val maci_string : key:String.t -> String.t iter -> t
val maci_bigstring : key:bigstring -> bigstring iter -> t
val macv_bytes : key:Bytes.t -> Bytes.t list -> t
val macv_string : key:String.t -> String.t list -> t
val macv_bigstring : key:bigstring -> bigstring list -> t
OCaml

Innovation. Community. Security.