Module Sodium_fmt.Box

Box defines formatters for types defined in Sodium.Box.

val secret_key : Sodium.Box.secret_key Fmt.t

secret_key formats a secret_key in this fashion: (Box.secret_key AAAAAA==).

val public_key : Sodium.Box.public_key Fmt.t

public_key formats a public_key in this fashion: (Box.public_key AAAAAA==).

val channel_key : Sodium.Box.channel_key Fmt.t

channel_key formats a channel_key in this fashion: (Box.channel_key AAAAAA==).

val nonce : Sodium.Box.nonce Fmt.t

nonce formats a nonce in this fashion: (Box.nonce AAAAAA==).

val keypair : Sodium.Box.keypair Fmt.t

keypair formats a keypair in this fashion: ((Box.secret_key AAAAAA==) (Box.public_key AAAAAA==)).

module type S = sig ... end
module Bytes : S with type storage = bytes

Bytes offers versions of each of the above formatters, which get their value from a bytes value.

module Bigbytes : S with type storage = Sodium.bigbytes

Bigbytes offers versions of each of the above formatters, which get their value from a Sodium.bigbytes value.