aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_crypto_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-09-05 17:44:50 +0000
committerChristian Grothoff <christian@grothoff.org>2015-09-05 17:44:50 +0000
commitf1a73a358739cd2bebf7b83ef1c097a04dc50cd4 (patch)
treec613cee2f4e64c86bc5c1d360e0868997bf6a7ae /src/include/gnunet_crypto_lib.h
parent59df216f6ad04e9131ee4fa43e14055252a71651 (diff)
downloadgnunet-f1a73a358739cd2bebf7b83ef1c097a04dc50cd4.tar.gz
gnunet-f1a73a358739cd2bebf7b83ef1c097a04dc50cd4.zip
add GNUNET_CRYPTO_ecc_pmul_mpi
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r--src/include/gnunet_crypto_lib.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 0acced362..e3d938382 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -1358,6 +1358,21 @@ GNUNET_CRYPTO_ecc_dexp_mpi (struct GNUNET_CRYPTO_EccDlogContext *edc,
1358 1358
1359 1359
1360/** 1360/**
1361 * Multiply the point @a p on the elliptic curve by @a val.
1362 *
1363 * @param edc calculation context for ECC operations
1364 * @param p point to multiply
1365 * @param val (positive) value to encode into a point
1366 * @return representation of the value as an ECC point,
1367 * must be freed using #GNUNET_CRYPTO_ecc_free()
1368 */
1369gcry_mpi_point_t
1370GNUNET_CRYPTO_ecc_pmul_mpi (struct GNUNET_CRYPTO_EccDlogContext *edc,
1371 gcry_mpi_point_t p,
1372 gcry_mpi_t val);
1373
1374
1375/**
1361 * Convert point value to binary representation. 1376 * Convert point value to binary representation.
1362 * 1377 *
1363 * @param edc calculation context for ECC operations 1378 * @param edc calculation context for ECC operations