Module Digestif.Core

Parameters

module Hash : Hash
module D : Desc

Signature

type t = string
type ctx = Hash.ctx
val digest_size : int
val block_size : int
val empty : Hash.ctx
val init : unit -> Hash.ctx
val unsafe_feed_bytes : Hash.ctx -> ?off:int -> ?len:int -> By.t -> unit
val unsafe_feed_string : Hash.ctx -> ?off:int -> ?len:int -> string -> unit
val unsafe_feed_bigstring : Hash.ctx -> ?off:int -> ?len:int -> (char, Bigarray_compat.int8_unsigned_eltBigarray_compat.c_layout) Bigarray_compat.Array1.t -> unit
val unsafe_get : Hash.ctx -> By.t
val to_hex : string -> string
val code : char -> int
val decode : char -> char -> char
val of_hex : string -> string
val of_hex_opt : string -> string option
val consistent_of_hex : string -> string
val consistent_of_hex_opt : string -> string option
val pp : Format.formatter -> string -> unit
val of_raw_string : string -> string
val of_raw_string_opt : string -> string option
val to_raw_string : 'a -> 'a
val equal : string -> string -> bool
val unsafe_compare : String.t -> String.t -> int
val get : Hash.ctx -> string
val feed_bytes : Hash.ctx -> ?off:int -> ?len:int -> By.t -> Hash.ctx
val feed_string : Hash.ctx -> ?off:int -> ?len:int -> string -> Hash.ctx
val feed_bigstring : Hash.ctx -> ?off:int -> ?len:int -> (char, Bigarray_compat.int8_unsigned_eltBigarray_compat.c_layout) Bigarray_compat.Array1.t -> Hash.ctx
val feedi_bytes : Hash.ctx -> ((By.t -> unit) -> 'a) -> Hash.ctx
val feedi_string : Hash.ctx -> ((string -> unit) -> 'a) -> Hash.ctx
val digest_bytes : ?off:int -> ?len:int -> By.t -> string
val digest_string : ?off:int -> ?len:int -> string -> string
val digest_bigstring : ?off:int -> ?len:int -> (char, Bigarray_compat.int8_unsigned_eltBigarray_compat.c_layout) Bigarray_compat.Array1.t -> string
val digesti_bytes : ((By.t -> unit) -> 'a) -> string
val digesti_string : ((string -> unit) -> 'a) -> string
val digesti_bigstring : (((char, Bigarray_compat.int8_unsigned_eltBigarray_compat.c_layout) Bigarray_compat.Array1.t -> unit) -> 'a) -> string
val digestv_bytes : By.t list -> string
val digestv_string : string list -> string