Module Secret_box.Bigbytes

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

type storage = Sodium.bigbytes
val secret_key : storage Fmt.t

secret_key formats a secret_key in this fashion: (Secret_box.secret_key AAAAAA==). If the storage value is not Sodium.Secret_box.secret_key_size bytes long, it will be formatted as (Secret_box.secret_key <size mismatch>).

val nonce : storage Fmt.t

nonce formats a nonce in this fashion: (Secret_box.nonce AAAAAA==). If the storage value is not Sodium.Secret_box.nonce_size bytes long, it will be formatted as (Secret_box.nonce <size mismatch>).