Function gnunet_sys::GNUNET_CRYPTO_eddsa_ecdh [−][src]
pub unsafe extern "C" fn GNUNET_CRYPTO_eddsa_ecdh(
priv_: *const GNUNET_CRYPTO_EddsaPrivateKey,
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 EdDSA key. Dual to #GNUNET_CRRYPTO_ecdh_eddsa.
@param priv private key from EdDSA 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