Function gnunet_sys::GNUNET_CRYPTO_ecc_rnd[][src]

pub unsafe extern "C" fn GNUNET_CRYPTO_ecc_rnd(
    edc: *mut GNUNET_CRYPTO_EccDlogContext,
    r: *mut gcry_mpi_point_t,
    r_inv: *mut gcry_mpi_point_t
)

Obtain a random point on the curve and its additive inverse. Both returned values must be freed using #GNUNET_CRYPTO_ecc_free().

@param edc calculation context for ECC operations @param[out] r set to a random point on the curve @param[out] r_inv set to the additive inverse of @a r