[−][src]Function xaynet_mobile::ffi::xaynet_ffi_crypto_init
#[no_mangle]pub unsafe extern "C" fn xaynet_ffi_crypto_init() -> c_int
Initialize the crypto library. This method must be called before instantiating a
participant with xaynet_ffi_participant_new()
or before generating new keys with
xaynet_ffi_generate_key_pair()
.
Return value
OK
if the initialization succeeded- -
ERR_CRYPTO_INIT
if the initialization failed
Safety
This function is safe to call