package octez-libs

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Mec.DigestifSource

This is a fork from Digestif, commit 891907675ead09b5e1c5de28c24246a0e411a546, adding personalisation to Blake2.

When this issue is solved, this fork can be removed.

Sourcetype 'a iter = ('a -> unit) -> unit

A general (inner) iterator. It applies the provided function to a collection of elements. For instance:

  • let iter_k : 'a -> 'a iter = fun x f -> f x
  • let iter_pair : 'a * 'a -> 'a iter = fun (x, y) -> f x; f y
  • let iter_list : 'a list -> 'a iter = fun l f -> List.iter f l
Sourcetype 'a compare = 'a -> 'a -> int
Sourcetype 'a equal = 'a -> 'a -> bool
Sourcetype 'a pp = Format.formatter -> 'a -> unit
Sourcemodule type S = sig ... end
Sourcemodule BLAKE2B : sig ... end
Sourcemodule BLAKE2S : sig ... end
Sourcemodule Make_BLAKE2B (D : sig ... end) : S
Sourcemodule Make_BLAKE2S (D : sig ... end) : S
Sourcetype 'k hash =
  1. | BLAKE2B : BLAKE2B.t hash
  2. | BLAKE2S : BLAKE2S.t hash
Sourceval blake2b : BLAKE2B.t hash
Sourceval blake2s : BLAKE2S.t hash
Sourcetype 'kind t
Sourceval module_of : 'k hash -> (module S with type t = 'k)
Sourceval digest_bytes : 'k hash -> Bytes.t -> 'k t
Sourceval digest_string : 'k hash -> String.t -> 'k t
Sourceval digest_bigstring : 'k hash -> bigstring -> 'k t
Sourceval digesti_bytes : 'k hash -> Bytes.t iter -> 'k t
Sourceval digesti_string : 'k hash -> String.t iter -> 'k t
Sourceval digesti_bigstring : 'k hash -> bigstring iter -> 'k t
Sourceval pp : 'k hash -> 'k t pp
Sourceval equal : 'k hash -> 'k t equal
Sourceval unsafe_compare : 'k hash -> 'k t compare
Sourceval to_hex : 'k hash -> 'k t -> string
Sourceval of_hex : 'k hash -> string -> 'k t
Sourceval of_hex_opt : 'k hash -> string -> 'k t option
Sourceval consistent_of_hex : 'k hash -> string -> 'k t
Sourceval consistent_of_hex_opt : 'k hash -> string -> 'k t option
Sourceval of_raw_string : 'k hash -> string -> 'k t
Sourceval of_raw_string_opt : 'k hash -> string -> 'k t option
Sourceval to_raw_string : 'k hash -> 'k t -> string
Sourceval of_digest : (module S with type t = 'hash) -> 'hash -> 'hash t
Sourceval of_blake2b : BLAKE2B.t -> BLAKE2B.t t
Sourceval of_blake2s : BLAKE2S.t -> BLAKE2S.t t
OCaml

Innovation. Community. Security.