this repo has no description
1opam-version: "2.0"
2homepage: "https://github.com/abeaumont/ocaml-salsa20-core"
3dev-repo: "git+https://github.com/abeaumont/ocaml-salsa20-core.git"
4bug-reports: "https://github.com/abeaumont/ocaml-salsa20-core/issues"
5maintainer: "Alfredo Beaumont <alfredo.beaumont@gmail.com>"
6license: "BSD-2-Clause"
7
8build: [
9 ["ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%"]
10 ["ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%" "--tests" "true"]
11 {with-test}
12 ["ocaml" "pkg/pkg.ml" "test"] {with-test}
13]
14depends: [
15 "ocaml" {>= "4.02.0"}
16 "ocamlfind" {build}
17 "ocamlbuild" {build}
18 "topkg" {build}
19 "ocb-stubblr" {build & >= "0.1.1"}
20 "cstruct" {>= "1.7.0" & < "6.0.1"}
21 "cstruct" {with-test & < "3.2.0"}
22 "nocrypto" {with-test}
23 "alcotest" {with-test}
24]
25synopsis: "Salsa20 core functions, in OCaml"
26description: """
27An OCaml implementation of [Salsa20 Core](http://cr.yp.to/salsa20.html) functions, both Salsa20/20 Core and the reduced Salsa20/8 Core and Salsa20/12 Core functions.
28The hot loop is implemented in C for efficiency reasons.
29
30Salsa 20 Core are functions from 64-byte strings to 64-byte strings.
31
32## Installation
33
34```
35opam install salsa20-core
36```
37
38## Usage
39
40```ocaml
41utop[0]> #require "salsa20-core";;
42utop[1]> 0
43|> Char.chr
44|> String.make 64
45|> Cstruct.of_string
46|> Salsa20_core.salsa20_20_core (* or salsa20_12_core / salsa20_8_core *)
47|> Cstruct.to_string;;
48- : string =
49"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000"
50```"""
51authors: "Alfredo Beaumont <alfredo.beaumont@gmail.com>"
52url {
53 src: "https://github.com/abeaumont/ocaml-salsa20-core/archive/0.2.0.tar.gz"
54 checksum: [
55 "sha256=f40e7a52e7d0c20e91566757f2356fb2272d31a4252b57eb35e2ad6e8cef8158"
56 "md5=495ad44e06e44c85cc61f5b27a4fa6e0"
57 ]
58}