Function sodiumoxide::crypto::onetimeauth::poly1305::gen_key[][src]

pub fn gen_key() -> Key
Expand description

gen_key() randomly generates a key for authentication

THREAD SAFETY: gen_key() is thread-safe provided that you have called sodiumoxide::init() once before using any other function from sodiumoxide.