Function gnunet_sys::GNUNET_CRYPTO_ecdh_eddsa[][src]

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

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

@param priv private key to use for the ECDH (y) @param pub public key from EdDSA to use for the ECDH (X=h(x)G) @param key_material where to write the key material H(yX)=H(h(x)yG) @return #GNUNET_SYSERR on error, #GNUNET_OK on success