opam-version: "2.0"
synopsis: "Simple public-key cryptography for the modern age"
description:
  "Mirage-crypto-pk provides public-key cryptography (RSA, DSA, DH)."
maintainer: "Hannes Mehnert <hannes@mehnert.org>"
authors: [
  "David Kaloper <dk505@cam.ac.uk>" "Hannes Mehnert <hannes@mehnert.org>"
]
license: "ISC"
homepage: "https://github.com/mirage/mirage-crypto"
doc: "https://mirage.github.io/mirage-crypto/doc"
bug-reports: "https://github.com/mirage/mirage-crypto/issues"
depends: [
  "conf-gmp-powm-sec" {build}
  "ocaml" {>= "4.07.0"}
  "dune" {>= "1.7"}
  "ounit" {with-test}
  "randomconv" {with-test & >= "0.1.3"}
  "cstruct" {>= "3.2.0"}
  "mirage-crypto" {= version}
  "mirage-crypto-rng" {= version}
  "sexplib"
  "ppx_sexp_conv"
  "zarith" {>= "1.4"}
  "eqaf" {>= "0.5"}
  "rresult" {>= "0.6.0"}
  ("mirage-no-xen" | "zarith-xen")
  ("mirage-no-solo5" | "zarith-freestanding")
]
build: [
  ["dune" "subst"] {pinned}
  ["dune" "build" "-p" name "-j" jobs]
  ["dune" "runtest" "-p" name "-j" jobs] {with-test}
]
patches: [
  "0001-Fix-computation-of-d-e-1-mod-lam-n-with-lam-lcm-p-1-.patch"
  "0002-tests-add-test-for-valid-openssl-generated-rsa-key.patch"
  "0003-pk-rsa-use-correct-invariant-when-checking-parameter.patch"
]
dev-repo: "git+https://github.com/mirage/mirage-crypto.git"
extra-files: [
  [
    "0003-pk-rsa-use-correct-invariant-when-checking-parameter.patch"
    "md5=ab829d972a3ef9c5cdd5057587111c50"
  ]
  [
    "0002-tests-add-test-for-valid-openssl-generated-rsa-key.patch"
    "md5=6d6a8eb137bc0fcc30f35e58f259a3a0"
  ]
  [
    "0001-Fix-computation-of-d-e-1-mod-lam-n-with-lam-lcm-p-1-.patch"
    "md5=b77e22350810e3899f1ec917b081ce3b"
  ]
]
url {
  src:
    "https://github.com/mirage/mirage-crypto/releases/download/v0.6.2/mirage-crypto-v0.6.2.tbz"
  checksum: [
    "sha256=e2284dc0f8d37110f4713b87145a26a2bbce3e43f14be51e88de18db5922b823"
    "sha512=2c9808261aec8498921e4dce2d66214e10dfe65e2c3729c081731d6c44abc0e990233e5398c9c2d31a97d1a40bdd38920c54817f572d3b592f4257ce85b331da"
  ]
}
