package irmin

  1. Overview
  2. Docs
On This Page
  1. Contents Hashing
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Irmin.HashSource

Hashing functions.

Hash provides user-defined hash functions to digest serialized contents. Some backends might be parameterized by such hash functions, others might work with a fixed one (for instance, the Git format uses only SHA1).

A SHA1 implementation is available to pass to the backends.

Contents Hashing

Sourcemodule type S = sig ... end

Signature for hash values.

Sourcemodule type TYPED = sig ... end

Signature for typed hashes, where hash directly takes a value as argument and incremental hashing is not possible.

Sourcemodule Make (H : Digestif.S) : sig ... end

Digestif hashes.

Sourcemodule Make_BLAKE2B (D : sig ... end) : sig ... end

Signature for digest hashes, inspired by Digestif.

Sourcemodule Make_BLAKE2S (D : sig ... end) : sig ... end

Signature for digest hashes, inspired by Digestif.

Sourcemodule SHA1 : sig ... end

Signature for digest hashes, inspired by Digestif.

Sourcemodule RMD160 : sig ... end

Signature for digest hashes, inspired by Digestif.

Sourcemodule SHA224 : sig ... end

Signature for digest hashes, inspired by Digestif.

Sourcemodule SHA256 : sig ... end

Signature for digest hashes, inspired by Digestif.

Sourcemodule SHA384 : sig ... end

Signature for digest hashes, inspired by Digestif.

Sourcemodule SHA512 : sig ... end

Signature for digest hashes, inspired by Digestif.

Sourcemodule BLAKE2B : sig ... end

Signature for digest hashes, inspired by Digestif.

Sourcemodule BLAKE2S : sig ... end

Signature for digest hashes, inspired by Digestif.

Sourcemodule V1 (H : sig ... end) : sig ... end

v1 serialisation

Sourcemodule Typed (K : sig ... end) (V : Type.S) : sig ... end

Typed hashes.