package omod

  1. Overview
  2. Docs

Digests.

include module type of Stdlib.Digest
type t = string
val compare : t -> t -> int
val equal : t -> t -> bool
val string : string -> t
val bytes : bytes -> t
val substring : string -> int -> int -> t
val subbytes : bytes -> int -> int -> t
val channel : Stdlib.in_channel -> int -> t
val file : string -> t
val output : Stdlib.out_channel -> t -> unit
val input : Stdlib.in_channel -> t
val to_hex : t -> string
val from_hex : string -> t
val pp : Stdlib.Format.formatter -> t -> unit

pp formats digests.

val pp_opt : Stdlib.Format.formatter -> t option -> unit

pp_opt formats optional digests.

module Set : Stdlib.Set.S with type elt = t

Digest sets.

module Map : Stdlib.Map.S with type key = t

Digest maps.