diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-09-05 22:32:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-09-05 22:32:52 +0000 |
commit | 022bc4891b9eb9701f3f003eaf995e3a4731d303 (patch) | |
tree | 78072eea94b714909a1ec327c8f1bb3e5965fe99 /src/include/gnunet_crypto_lib.h | |
parent | 537de3328e656911aa3c1c84e1ceb6bcaa8ab3d3 (diff) |
-fix ftbfs
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index e3d938382a..33ad1af2be 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h @@ -1427,6 +1427,20 @@ GNUNET_CRYPTO_ecc_rnd (struct GNUNET_CRYPTO_EccDlogContext *edc, /** + * 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. * * @param edc ECC context |