multicast: removed replay cancellation as responses are limited
[oweals/gnunet.git] / src / include / gnunet_crypto_lib.h
index e3d938382a95f70ff3800e9dd52d0de3851075d4..33ad1af2be27230423a3f4a3871a8de53d84bd48 100644 (file)
@@ -1426,6 +1426,20 @@ GNUNET_CRYPTO_ecc_rnd (struct GNUNET_CRYPTO_EccDlogContext *edc,
                       gcry_mpi_point_t *r_inv);
 
 
+/**
+ * Obtain a random scalar for point multiplication on the curve and
+ * its multiplicative inverse.
+ *
+ * @param edc calculation context for ECC operations
+ * @param[out] r set to a random scalar on the curve
+ * @param[out] r_inv set to the multiplicative inverse of @a r
+ */
+void
+GNUNET_CRYPTO_ecc_rnd_mpi (struct GNUNET_CRYPTO_EccDlogContext *edc,
+                           gcry_mpi_t *r,
+                           gcry_mpi_t *r_inv);
+
+
 /**
  * Generate a random value mod n.
  *