Function hacl_sys::EverCrypt_Curve25519_ecdh
source · pub unsafe extern "C" fn EverCrypt_Curve25519_ecdh(
shared: *mut u8,
my_priv: *mut u8,
their_pub: *mut u8
) -> bool
Expand description
Execute the diffie-hellmann key exchange.
@param shared Pointer to 32 bytes of memory where the resulting point is written to. @param my_priv Pointer to 32 bytes of memory where our secret/private key is read from. @param their_pub Pointer to 32 bytes of memory where their public point is read from.