Function gnunet_sys::GNUNET_CRYPTO_ecc_dexp [−][src]
pub unsafe extern "C" fn GNUNET_CRYPTO_ecc_dexp(
edc: *mut GNUNET_CRYPTO_EccDlogContext,
val: c_int
) -> gcry_mpi_point_t
Multiply the generator g of the elliptic curve by @a val to obtain the point on the curve representing @a val. Afterwards, point addition will correspond to integer addition. #GNUNET_CRYPTO_ecc_dlog() can be used to convert a point back to an integer (as long as the integer is smaller than the MAX of the @a edc context).
@param edc calculation context for ECC operations @param val value to encode into a point @return representation of the value as an ECC point, must be freed using #GNUNET_CRYPTO_ecc_free()