Function gnunet_sys::GNUNET_CRYPTO_ecc_ecdh[][src]

pub unsafe extern "C" fn GNUNET_CRYPTO_ecc_ecdh(
    priv_: *const GNUNET_CRYPTO_EcdhePrivateKey,
    pub_: *const GNUNET_CRYPTO_EcdhePublicKey,
    key_material: *mut GNUNET_HashCode
) -> GNUNET_GenericReturnValue

@ingroup crypto Derive key material from a public and a private ECC key.

@param priv private key to use for the ECDH (x) @param pub public key to use for the ECDH (yG) @param key_material where to write the key material (xyG) @return #GNUNET_SYSERR on error, #GNUNET_OK on success