Module Ttweetnacl

TweetNaCl cryptography.

The binding exposes two modules with the same signature except for the type used for storing bytes:



type bigbytes = ( int, Bigarray.int8_unsigned_elt, Bigarray.c_layout ) Bigarray.Array1.t

The type for bigarrays of bytes.

module type BYTES = sig ... end

The module type for byte buffers.


module type CRYPTO = sig ... end

The module type for NaCl cryptography.

module Bigcrypto : CRYPTO with type Bytes.t = bigbytes

Crypto on bigbytes.

module Crypto : CRYPTO with type Bytes.t = bytes

Crypto on bytes.