package salsa20-core

  1. Overview
  2. Docs
The Salsa20 core functions, in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

2.0.0.tar.gz
md5=ee701612460d97d0dc3ca615af3ef5cb
sha512=9f413abcd15be97b3ad39efea1557e4a6b80892fbe89796298fcae5207d9f894d824ee602459e43eda07fd2875bdd90ad4c0e2a87c8cfa4ecef83ae31b4a5136

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.

Published: 15 Jul 2024

README

README.md

The 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
|> Salsa20_core.salsa20_20_core (* or salsa20_12_core / salsa20_8_core *);;
- : 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"

Dependencies (2)

  1. ocaml >= "4.02.0"
  2. dune >= "1.3.0"

Dev Dependencies (2)

  1. ohex with-test
  2. alcotest with-test

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.