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) | |
download | gnunet-022bc4891b9eb9701f3f003eaf995e3a4731d303.tar.gz gnunet-022bc4891b9eb9701f3f003eaf995e3a4731d303.zip |
-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 e3d938382..33ad1af2b 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, | |||
1427 | 1427 | ||
1428 | 1428 | ||
1429 | /** | 1429 | /** |
1430 | * Obtain a random scalar for point multiplication on the curve and | ||
1431 | * its multiplicative inverse. | ||
1432 | * | ||
1433 | * @param edc calculation context for ECC operations | ||
1434 | * @param[out] r set to a random scalar on the curve | ||
1435 | * @param[out] r_inv set to the multiplicative inverse of @a r | ||
1436 | */ | ||
1437 | void | ||
1438 | GNUNET_CRYPTO_ecc_rnd_mpi (struct GNUNET_CRYPTO_EccDlogContext *edc, | ||
1439 | gcry_mpi_t *r, | ||
1440 | gcry_mpi_t *r_inv); | ||
1441 | |||
1442 | |||
1443 | /** | ||
1430 | * Generate a random value mod n. | 1444 | * Generate a random value mod n. |
1431 | * | 1445 | * |
1432 | * @param edc ECC context | 1446 | * @param edc ECC context |