Function private_box::init [−][src]
pub fn init()
libsodium must be initialised before calling encrypt
or decrypt
.
If you're using other libsodium based libraries that already initialise libsodium, you can omit
the call to init
.
init
is provided as a convenience function and the code is only:
pub fn init(){ unsafe{ sodium_init(); } }