opam-version: "2.0"
maintainer:   [ "Romain Calascibetta <romain.calascibetta@gmail.com>" ]
authors:      [ "Romain Calascibetta <romain.calascibetta@gmail.com>" ]
homepage:     "https://github.com/dinosaure/eqaf"
bug-reports:  "https://github.com/dinosaure/eqaf/issues"
dev-repo: "git+https://github.com/dinosaure/eqaf.git"
doc:          "https://dinosaure.github.io/eqaf/"
license:      "MIT"

build: [ "jbuilder" "build" "-p" name "-j" jobs ]

depends: [
  "ocaml" {>= "4.03.0"}
  "jbuilder"
]
synopsis: "Constant time equal function on `string`"
description: """
From some crypto libraries like
[digestif](https://github.com/mirage/digestif.git) or
[Callipyge](https://github.com/oklm-wsh/Callipyge.git), it needed to have a
constant time equal function to avoid timing attacks. To avoid replication of
code and ensure maintainability of this kind of function, we decide to provide a
little package which implements `equal` function on `string`.

This package provides 2 implementations (a C implementation which comes from
OpenBSD's code and an OCaml implementation which is simply a translation of the
C code) well tested to check constant time assumption (see tests).

Happy hacking!"""
url {
  src:
    "https://github.com/dinosaure/eqaf/releases/download/v0.1/eqaf-0.1.tbz"
  checksum: "md5=0e04772c3a0b67bf2c5393a03511878b"
}
