Opam Package salsa20.1.1.0

Package info

opam-namesalsa20
opam-version1.1.0
synopsisSalsa20 family of encryption functions, in pure OCaml
description ```ocaml utop[0]> #require "mirage-crypto";; utop[1]> #require "mirage-crypto-rng.unix";; utop[2]> Mirage_crypto_rng_unix.initialize ();; - : unit = () utop[3]> let key = Mirage_crypto_rng.generate 32;; val key : Cstruct.t = {Cstruct.buffer = <abstr>; off = 0; len = 32} utop[4]> let nonce = Cstruct.create 8;; val nonce : Cstruct.t = {Cstruct.buffer = <abstr>; off = 0; len = 8} utop[5]> #require "salsa20";; utop[6]> let state = Salsa20.create key nonce;; val state : Salsa20.t = <abstr> utop[7]> Salsa20.encrypt (Cstruct.of_string "My secret text") state |> Cstruct.to_string;; - : string = " 2\193\020`\142\182\234\188H[R\241V" ```
authors
  • Alfredo Beaumont <alfredo.beaumont@gmail.com>
homepagehttps://github.com/abeaumont/ocaml-salsa20
licenseBSD2
changes-fileCHANGES.md
license-fileLICENSE.md
readme-fileREADME.md
deps (6)
revdeps(0)
metas (1)
libraries (1)

Package modules

Package sources

salsa20

Package files

lib/salsa20/salsa20.mli
lib/salsa20/salsa20.ml
lib/salsa20/salsa20.cmxs
lib/salsa20/salsa20.cmxa
lib/salsa20/salsa20.cmx
lib/salsa20/salsa20.cmti
lib/salsa20/salsa20.cmt
lib/salsa20/salsa20.cmi
lib/salsa20/salsa20.cma
lib/salsa20/salsa20.a
lib/salsa20/opam
lib/salsa20/dune-package
lib/salsa20/META
lib/salsa20
doc/salsa20/README.md
doc/salsa20/LICENSE.md
doc/salsa20/CHANGES.md
doc/salsa20