shared_secret

Function shared_secret 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn shared_secret( local_secret: *const c_char, remote_pubkey: *const c_char, ) -> *mut c_char
Expand description

Computes a Diffie Hellman shared secret

ยงSafety

  • This function is unsafe because it dereferences and a returns raw pointer.
  • ENSURE that result is passed into cstring_free(ptr: *mut c_char) after use.