Stream.Nonce
Nonces.
Use Nonce.generate
to generate one.
val generate : unit -> t
generate ()
generates a random nonce using Entropy.gather
. The function blocks until enough entropy is gathered.
of_bytes b
is a nonce from bytes b
. Raises Invalid_argument
if n
's length differs from length
.
val pp : Stdlib.Format.formatter -> t -> unit
pp ppf n
is an unspecified formatter for nonces.