this repo has no description
1opam-version: "2.0"
2synopsis: "Salsa20 family of encryption functions, in pure OCaml"
3description: """
4```ocaml
5utop[0]> #require "mirage-crypto";;
6utop[1]> #require "mirage-crypto-rng.unix";;
7utop[2]> Mirage_crypto_rng_unix.initialize ();;
8- : unit = ()
9utop[3]> let key = Mirage_crypto_rng.generate 32;;
10val key : Cstruct.t = {Cstruct.buffer = <abstr>; off = 0; len = 32}
11utop[4]> let nonce = Cstruct.create 8;;
12val nonce : Cstruct.t = {Cstruct.buffer = <abstr>; off = 0; len = 8}
13utop[5]> #require "salsa20";;
14utop[6]> let state = Salsa20.create key nonce;;
15val state : Salsa20.t = <abstr>
16utop[7]> Salsa20.encrypt (Cstruct.of_string "My secret text") state |> Cstruct.to_string;;
17- : string = " 2\\193\\020`\\142\\182\\234\\188H[R\\241V"
18```
19"""
20maintainer: "Alfredo Beaumont <alfredo.beaumont@gmail.com>"
21authors: "Alfredo Beaumont <alfredo.beaumont@gmail.com>"
22license: "BSD-2-Clause"
23homepage: "https://github.com/abeaumont/ocaml-salsa20"
24dev-repo: "git+https://github.com/abeaumont/ocaml-salsa20.git"
25bug-reports: "https://github.com/abeaumont/ocaml-salsa20/issues"
26doc: "https://abeaumont.github.io/ocaml-salsa20/"
27depends: [
28 "ocaml" {>= "4.07.0"}
29 "dune" {>= "1.8.0"}
30 "cstruct" {>= "6.0.0"}
31 "mirage-crypto" {< "1.0.0"}
32 "salsa20-core" {>= "0.1.0" & < "2.0.0"}
33 "alcotest" {with-test}
34]
35build: [
36 [ "dune" "subst" ] {dev}
37 [ "dune" "build" "-j" jobs "-p" name "@install" ]
38 [ "dune" "runtest" "-j" jobs "-p" name ] {with-test}
39]
40url {
41 src: "https://github.com/abeaumont/ocaml-salsa20/archive/1.2.0.tar.gz"
42 checksum: [
43 "md5=aabca4d3954543cf8afb5121e0719821"
44 "sha512=afe2212ee6f44a32811214b0a369be06ed7806e501adb4e98dd5b0bc0718ce311c8306919813d64ed7a6df3d6147d42ce819488801b863d5cd31079c37120fbb"
45 ]
46}