package digestif

  1. Overview
  2. Docs
Hashes implementations (SHA*, RIPEMD160, BLAKE2* and MD5)

Install

Dune Dependency

Authors

Maintainers

Sources

digestif-1.1.1.tbz
sha256=858fcaaf983c528f8e744f81accc7b0dd254c96b17222f12e1f270e8521d3799
sha512=019dfc8dd4a5e5f01fd142729d09135aca3d77a463c2910449203661f7e808ded68c9078b2cc1eb0f7acac7dcf21fa6250a93d8976ac94cd2cfd44b82eac8242

CHANGES.md.html

v1.1.1 2022-03-28 Paradou (France)

  • Hide C functions (sha3_keccakf) (@hannesm, #125)

  • Use ocaml to run install.ml instead of a shebang (@Nymphium, #127)

  • Use command -v instead of which (@Numphium, #126)

  • Add @since meta-data in documentation (@c-cube, @dinosaure, #128)

  • Update the README.md (@dinosaure, @mimoo, #130)

  • ocaml-solo5 provides __ocaml_solo5__ instead of __ocaml_freestanding__ (@dinosaure, #131)

v1.1.0 2021-10-11 Paris (France)

  • Add Keccak256 module (ethereum padding) (@maxtori, @dinosaure, #118)

  • Update README.md to include the documentation (@mimoo, @dinosaure, 65a5c12)

  • Remove deprecated function from fmt library (@dinosaure, #121)

  • NOTE: This version lost the support of OCaml 4.03 and OCaml 4.04.

v1.0.1 2020-02-08 Paris (France)

  • Fix esy support (@dinosaure, #115)

  • Fix big-endian support (@dinosaure, #113)

v1.0.0 2020-11-02 Paris (France)

  • breaking changes Upgrade the library with MirageOS 3.9 (new layout of artifacts) Add tests about compilation of unikernels (execution and link) (#105, @dinosaure, @hannesm)

  • Fix esy installation (#104, @dinosaure)

  • breaking changes Better GADT (#103, @dinosaure) As far as I can tell, nobody really use this part of digestif. The idea is to provide a GADT which contains the type of the hash. From third-part libraries point-of-view, it's better to pattern-match with such information instead to use a polymorphic variant (as before).

  • breaking changes key used for HMAC is a constant string (#101, @dinosaure, @hannesm) The key should not follow the same type as the digest value (string, bytes, bigstring). This update restricts the user to user only constant key (as a string).

v0.9.0 2020-07-10 Paris (France)

  • Add sha3 implementation (#98), @lyrm, @dinosaure, @hannesm and @cfcs

v0.8.1 2020-06-15 Paris (France)

  • Move to dune.2.6.0 (#97)

  • Apply ocamlformat.0.14.2 (#97)

  • Fix tests according alcotest.1.0.0 (#95)

v0.8.0 2019-20-09 Saint Louis (Sénégal)

  • Fake version to prioritize dune's variants instead of old linking trick

  • Use stdlib-shims to keep compatibility with < ocaml.4.07.0

v0.7.3 2019-07-09 Paris (France)

  • Fix bug about specialization of BLAKE2{B,S} (#85, #86) reported by @samoht, fixed by @dinosaure, reviewed by @hannes and @cfcs

v0.7.2 2019-05-16 Paris (France)

  • Add conflict with < mirage-xen-posix.3.1.0 packages (@hannesm)

  • Add a note on README.md about the linking-trick and order of dependencies (@rizo)

  • Use experimental feature of variants with dune (@dinosaure, review @rgrinberg)

    digestif requires at least dune.1.9.2

v0.7.1 2018-11-15 Paris (France)

  • Cross compilation adjustments (@hannesm) (# 76)

  • Add the WHIRLPOOL hash algorithm (@clecat) (#77)

  • Backport fix on opam file (@dinosaure, @kit-ty-kate)

v0.7 2018-10-15 Paris (France)

  • Fixed HMAC on BLAKE2{S,B} (@emillon) (#46, #51)

  • Fixed convenient_of_hex (@dinosaure, @hannesm, @cfcs) (#55)

  • Add of_raw_string/to_raw_string (@samoht) (#57)

  • Test digestif on solo5 and xen backends (@samoht)

  • breaking change, commont type t is an abstract type (#58, #56)

  • Fixed META file (@dinosaure, @g2p) (#75)

  • New dependency eqaf (@dinosaure, @cfcs, @hannesm) (constant-time equal function) (#33, #34, #48, #50, #52, #65)

  • Remove Obj.magic in common implementation (@dinosaure, @samoht) (#61, #62)

  • Add conveniences functions in common implementation (@hcarty) (#63)

  • Add option-returning functions in common implementation (@harcty) (#63)

  • Verify length of string on of_raw_string function (@hcarty) (#63)

  • Release runtime lock (@andersfugmann, @dinosaure, @cfcs) (#69, #70)

  • Bounds check (@cfcs, @dinosaure) (#71, #72)

  • Fixed linking problem (@andersfugmann, @g2p, @dinosaure) (#49, #53, #73, #74)

  • Update OPAM file (@dinosaure)

v0.6.1 2018-07-24 Paris (France)

  • breaking change API: Digestif implements a true linking trick. End-user need to explicitely link with digestif.{c,ocaml} and it needs to be the first of your dependencies.

  • move to jbuilder/dune

v0.6 2018-07-05 Paris (France)

  • breaking change API: From a consensus between people who use digestif, we decide to delete *.Bytes.* and *.Bigstring.* sub-modules. We replace it by feed_{bytes,string,bigstring} (digest_, and hmac_ too)

  • breaking change semantic: streaming and referentially transparent Add feedi_{bytes,string,bigstring}, digesti_{bytes,string,bigstring} and hmaci_{bytes,string,bigstring} (@hannesm, @cfcs)

  • Constant time for eq/neq functions (@cfcs)

  • breaking change semantic on compare and unsafe_compare: compare is not a lexicographical comparison function (rename to unsafe_compare) (@cfcs)

  • Add consistent_of_hex (@hannesm, @cfcs)

v0.4 2017-10-30 Mysore / ಮೈಸೂರು (India)

  • Add an automatised test suit

  • Add the RIPEMD160 hash algorithm

  • Add the BLAKE2S hash algorithm

  • Update authors

  • Add feed_bytes and feed_bigstring for Bytes and Bigstring

v0.3 2017-07-21 Phnom Penh (Cambodia)

  • Fixed issue #6

  • Make a new test suit

v0.2 2017-07-05 Phnom Penh (Cambodia)

  • Implementation of the hash function in pure OCaml

  • Link improvement (à la mtime) to decide to use the C stub or the OCaml implementation

  • Improvement of the common interface (pretty-print, type t, etc.)

v0.1 2017-05-12 Rạch Giá (Vietnam)

  • First release

OCaml

Innovation. Community. Security.