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 "alcotest" {with-test} 22] 23synopsis: "Salsa20 core functions, in OCaml" 24description: """ 25An 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. 26The hot loop is implemented in C for efficiency reasons. 27 28Salsa 20 Core are functions from 64-byte strings to 64-byte strings. 29 30## Installation 31 32``` 33opam install salsa20-core 34``` 35 36## Usage 37 38```ocaml 39utop[0]> #require "salsa20-core";; 40utop[1]> 0 41|> Char.chr 42|> String.make 64 43|> Cstruct.of_string 44|> Salsa20_core.salsa20_20_core (* or salsa20_12_core / salsa20_8_core *) 45|> Cstruct.to_string;; 46- : string = 47"\\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" 48```""" 49authors: "Alfredo Beaumont <alfredo.beaumont@gmail.com>" 50url { 51 src: "https://github.com/abeaumont/ocaml-salsa20-core/archive/0.3.0.tar.gz" 52 checksum: [ 53 "sha256=ea15c582f6d643c4791e58b59659739d5b79d16ceafbf30c3c63b3777f8d28c3" 54 "md5=a8b0f41bb3501af748edaf7bbdafed1a" 55 ] 56}