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

Innovation. Community. Security.