Function sodiumoxide::crypto::box_::curve25519xsalsa20poly1305::gen_keypair
[−]
[src]
pub fn gen_keypair() -> (PublicKey, SecretKey)
gen_keypair()
randomly generates a secret key and a corresponding public key.
THREAD SAFETY: gen_keypair()
is thread-safe provided that you have
called sodiumoxide::init()
once before using any other function
from sodiumoxide.