diff options
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 |