Function gnunet_sys::GNUNET_CRYPTO_ecdh_ecdsa[][src]

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

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

@param priv private key to use for the ECDH (y) @param pub public key from ECDSA 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