package digestif

  1. Overview
  2. Docs
val digest_size : int
type ctx
type kind = [
  1. | `BLAKE2B
]
type t = private string
val empty : ctx
val init : unit -> ctx
val feed_bytes : ctx -> ?off:int -> ?len:int -> Bytes.t -> ctx
val feed_string : ctx -> ?off:int -> ?len:int -> String.t -> ctx
val feed_bigstring : ctx -> ?off:int -> ?len:int -> Digestif_sig.bigstring -> ctx
val feedi_bytes : ctx -> Bytes.t Digestif_sig.iter -> ctx
val feedi_string : ctx -> String.t Digestif_sig.iter -> ctx
val feedi_bigstring : ctx -> Digestif_sig.bigstring Digestif_sig.iter -> ctx
val get : ctx -> t
val digest_bytes : ?off:int -> ?len:int -> Bytes.t -> t
val digest_string : ?off:int -> ?len:int -> String.t -> t
val digest_bigstring : ?off:int -> ?len:int -> Digestif_sig.bigstring -> t
val digesti_bytes : Bytes.t Digestif_sig.iter -> t
val digesti_string : String.t Digestif_sig.iter -> t
val digesti_bigstring : Digestif_sig.bigstring Digestif_sig.iter -> t
val digestv_bytes : Bytes.t list -> t
val digestv_string : String.t list -> t
val digestv_bigstring : Digestif_sig.bigstring list -> t
val hmac_bytes : key:Bytes.t -> ?off:int -> ?len:int -> Bytes.t -> t
val hmac_string : key:String.t -> ?off:int -> ?len:int -> String.t -> t
val hmac_bigstring : key:Digestif_sig.bigstring -> ?off:int -> ?len:int -> Digestif_sig.bigstring -> t
val hmaci_bytes : key:Bytes.t -> Bytes.t Digestif_sig.iter -> t
val hmaci_string : key:String.t -> String.t Digestif_sig.iter -> t
val hmacv_bytes : key:Bytes.t -> Bytes.t list -> t
val hmacv_string : key:String.t -> String.t list -> t
val hmacv_bigstring : key:Digestif_sig.bigstring -> Digestif_sig.bigstring list -> t
val unsafe_compare : t Digestif_sig.compare
val compare : t Digestif_sig.compare
val of_hex : string -> t
val consistent_of_hex : string -> t
val to_hex : t -> string
OCaml

Innovation. Community. Security.