salsa20-core
Salsa20 core functions, in OCaml
Description
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"
Install
copied = false, 2000)"
:class="{ 'border-gray-700': !copied, 'text-gray-100': !copied, 'focus:ring-orange-500': !copied, 'focus:border-orange-500': !copied, 'border-green-600': copied, 'text-green-600': copied, 'focus:ring-green-500': copied, 'focus:border-green-500': copied }">
- Published
- 05 Jun 2017
- Authors
- Maintainers
Sources
Dependencies
alcotest
with-test
nocrypto
with-test
cstruct
with-test & < "3.2.0"
cstruct
>= "1.7.0" & < "6.0.1"
ocb-stubblr
build & >= "0.1.1"
topkg
build
ocamlbuild
build
ocamlfind
build
ocaml
>= "4.02.0"
Reverse Dependencies
scrypt-kdf
>= "0.4.0"