salsa20-core

AuthorAlfredo Beaumont <alfredo.beaumont@gmail.com>
LicenseBSD2
Homepagehttps://github.com/abeaumont/ocaml-salsa20-core
Issue Trackerhttps://github.com/abeaumont/ocaml-salsa20-core/issues
MaintainerAlfredo Beaumont <alfredo.beaumont@gmail.com>
Dependencies
&alcotest
cstruct>= 1.7.0
nocrypto
ocamlbuild
ocamlfind
ocb-stubblr
topkg
Availableocaml-version >= "4.02.0"
PublishedJun 5, 2017
Source [http] https://github.com/abeaumont/ocaml-salsa20-core/archive/0.2.0.tar.gz
495ad44e06e44c85cc61f5b27a4fa6e0
StatisticsInstalled 2 times last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/salsa20-core/salsa20-core.0.2.0/opam

Salsa20 core functions, in OCaml

An OCaml implementation of Salsa20 Core functions, both Salsa20/20 Core and the reduced Salsa20/8 Core and Salsa20/12 Core functions. The hot loop is implemented in C for efficiency reasons.

Salsa 20 Core are functions from 64-byte strings to 64-byte strings.

Installation

opam install salsa20-core

Usage

utop[0]> #require "salsa20-core";;
utop[1]> 0
|> Char.chr
|> String.make 64
|> Cstruct.of_string
|> Salsa20_core.salsa20_20_core (* or salsa20_12_core / salsa20_8_core *)
|> Cstruct.to_string;;
- : string =
"\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"
Necessary for
scrypt-kdf
>= 0.4.0