this repo has no description
1opam-version: "2.0"
2homepage: "https://github.com/mirleft/ocaml-nocrypto"
3dev-repo: "git+https://github.com/mirleft/ocaml-nocrypto.git"
4bug-reports: "https://github.com/mirleft/ocaml-nocrypto/issues"
5doc: "https://mirleft.github.io/ocaml-nocrypto/doc"
6authors: ["David Kaloper <david@numm.org>"]
7maintainer: "David Kaloper <david@numm.org>"
8license: "ISC"
9tags: [ "org:mirage" ]
10build: ["ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%" "--tests" "false"
11 "--jobs" "1"
12 "--with-lwt" "%{lwt:installed}%"
13 "--with-mirage" "%{mirage-entropy:installed}%"
14 "--xen" "%{mirage-xen:installed}%"
15 "--freestanding" "%{mirage-solo5:installed}%"]
16
17depends: [
18 "ocaml" {>= "4.02.0" & != "4.08.0"}
19 "ocamlfind" {build}
20 "ocamlbuild" {build}
21 "topkg" {build & >= "0.9.1"}
22 "cpuid" {build & >= "0.1.2"}
23 "ocb-stubblr" {build & >= "0.1.0"}
24 "ppx_deriving" {>= "4.2"}
25 "ppx_sexp_conv" {>= "113.33.01" & != "v0.11.0"}
26 "ounit" {with-test}
27 "cstruct" {>= "3.0.0" & < "6.1.0"}
28 "cstruct-lwt"
29 "zarith"
30 "lwt"
31 "sexplib" {!= "v0.9.0"}
32 ("mirage-no-xen" |
33 ("mirage-xen" {>="2.2.0" & < "6.0.0"}
34 & "zarith-xen"))
35 ("mirage-no-solo5" | ("mirage-solo5" & "zarith-freestanding"))
36]
37depopts: [ "mirage-entropy" ]
38
39patches: [
40 "0001-add-missing-runtime-dependencies-in-_tags.patch"
41 "0002-add-ppx_sexp_conv-as-a-runtime-dependency-in-the-pac.patch"
42 "0003-Auto-detect-ppx_sexp_conv-runtime-library.patch"
43 "0004-pack-package-workaround-ocamlbuild-272.patch"
44 "0005-use-modern-cstruct-findlib.patch"
45 "0006-explicit-dependency-on-sexplib.patch"
46 "0007-mirage-entropy.patch"
47]
48synopsis: "Simpler crypto"
49description: """
50nocrypto is a small cryptographic library that puts emphasis on the applicative
51style and ease of use. It includes basic ciphers (AES, 3DES, RC4), hashes (MD5,
52SHA1, SHA2), public-key primitives (RSA, DSA, DH) and a strong RNG (Fortuna).
53
54RSA timing attacks are countered by blinding. AES timing attacks are avoided by
55delegating to AES-NI."""
56url {
57 src:
58 "https://github.com/mirleft/ocaml-nocrypto/releases/download/v0.5.4/nocrypto-0.5.4.tbz"
59 checksum: [
60 "sha256=8f720c8753136706ae14d46ba85e27f482a8b3e9ceccf08b0de63348618a507f"
61 "md5=c331a7a4d2a563d1d5ed581aeb849011"
62 ]
63}
64extra-source "0007-mirage-entropy.patch" {
65 src:
66 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/nocrypto/0007-mirage-entropy.patch"
67 checksum: [
68 "sha256=9c35befbfb2197441d3a2daac0eafcf6b2aa9b8daffac04371914476da86543d"
69 "md5=bb3368e3fd64857a6d05e1a3e61f08cf"
70 ]
71}
72extra-source "0006-explicit-dependency-on-sexplib.patch" {
73 src:
74 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/nocrypto/0006-explicit-dependency-on-sexplib.patch"
75 checksum: [
76 "sha256=9822bdb072fc6c2e6e86f42098d24723ea0500a5213fa2635e2fbe68cd0541fe"
77 "md5=7f552e18ba304eb4e1e19d66d19b7888"
78 ]
79}
80extra-source "0005-use-modern-cstruct-findlib.patch" {
81 src:
82 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/nocrypto/0005-use-modern-cstruct-findlib.patch"
83 checksum: [
84 "sha256=2957ae6999c8fbfe717ec01c4014c02bf63de46a61fe02047df7b0b4cbd094cc"
85 "md5=4d4aab890f0ca9327d83548c32d64efc"
86 ]
87}
88extra-source "0004-pack-package-workaround-ocamlbuild-272.patch" {
89 src:
90 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/nocrypto/0004-pack-package-workaround-ocamlbuild-272.patch"
91 checksum: [
92 "sha256=7c6391be9369acaf60bc0fa00fd30ac5dd5d460ec4874f24027b875734a8286f"
93 "md5=94615e4a8d5976e9e75c3b031d3484f1"
94 ]
95}
96extra-source "0003-Auto-detect-ppx_sexp_conv-runtime-library.patch" {
97 src:
98 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/nocrypto/0003-Auto-detect-ppx_sexp_conv-runtime-library.patch"
99 checksum: [
100 "sha256=4d1da59e80075658472fbfa3e0042090b5c9081c0e879c913ec15b2a6a2b690e"
101 "md5=871b3f904cf87527b7390993d5598884"
102 ]
103}
104extra-source "0002-add-ppx_sexp_conv-as-a-runtime-dependency-in-the-pac.patch" {
105 src:
106 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/nocrypto/0002-add-ppx_sexp_conv-as-a-runtime-dependency-in-the-pac.patch"
107 checksum: [
108 "sha256=c3a09577c9a892d0f9e77ac3e63b4ba546bc9d9692607ecc4958910a2137c946"
109 "md5=06962f4f2f5b4c3f1e39293b3d3528f2"
110 ]
111}
112extra-source "0001-add-missing-runtime-dependencies-in-_tags.patch" {
113 src:
114 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/nocrypto/0001-add-missing-runtime-dependencies-in-_tags.patch"
115 checksum: [
116 "sha256=c1ffcc3dbbc806b2bbfed07141e79ea1b7479c6838cefff3ca648fe58f4f0f20"
117 "md5=ae679a096e14c0a0ecb881bc7432cc2a"
118 ]
119}