package digestif

  1. Overview
  2. Docs
val digest_size : int
type ctx
type kind
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 -> bigstring -> ctx
val feedi_bytes : ctx -> Bytes.t iter -> ctx
val feedi_string : ctx -> String.t iter -> ctx
val feedi_bigstring : ctx -> bigstring 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 -> bigstring -> t
val digesti_bytes : Bytes.t iter -> t
val digesti_string : String.t iter -> t
val digesti_bigstring : bigstring iter -> t
val digestv_bytes : Bytes.t list -> t
val digestv_string : String.t list -> t
val digestv_bigstring : 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:bigstring -> ?off:int -> ?len:int -> bigstring -> t
val hmaci_bytes : key:Bytes.t -> Bytes.t iter -> t
val hmaci_string : key:String.t -> String.t iter -> t
val hmaci_bigstring : key:bigstring -> bigstring 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:bigstring -> bigstring list -> t
val unsafe_compare : t compare
val compare : t compare
val eq : t equal
val neq : t equal
val pp : t pp
val of_hex : string -> t
val consistent_of_hex : string -> t
val to_hex : t -> string
OCaml

Innovation. Community. Security.