Secretbox.Secret_key
Secret keys.
Use Secret_key.generate
to generate one.
val generate : unit -> t
generate ()
generates a random key using Entropy.gather
. The function blocks until enough entropy is gathered.
of_bytes b
is a secret key from bytes b
. Raises Invalid_argument
if b
's length differs from length
.
val pp : Stdlib.Format.formatter -> t -> unit
pp ppf pk
is an unspecified formatter for secret keys.