Function gnunet_sys::GNUNET_CRYPTO_ecdsa_ecdh[][src]

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

@ingroup crypto Derive key material from a ECDH public key and a private ECDSA key. Dual to #GNUNET_CRRYPTO_ecdh_ecdsa.

@param priv private key from ECDSA 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 H(h(x)yG) @return #GNUNET_SYSERR on error, #GNUNET_OK on success