Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val random_keypair : unit -> keypair
random_keypair ()
generates a random key pair.
secret_key_to_public_key sk
extract the secret key sk
's public_key
.
val wipe_key : 'a key -> unit
wipe_key k
overwrites k
with zeroes.
equal_public_keys a b
checks a
and b
for equality in constant time.
equal_secret_keys a b
checks a
and b
for equality in constant time.
val box_keypair : keypair -> Box.keypair
box_keypair kp
is the Box.keypair
extracted from kp
.
val box_public_key : public key -> Box.public_key
box_public_key k
is the Box.public_key
extracted from k
.
val box_secret_key : secret key -> Box.secret_key
box_secret_key k
is the Box.secret_key
extracted from k
.
module type S = sig ... end