aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Fuchs <christian.fuchs@cfuchs.net>2014-01-26 13:51:21 +0000
committerChristian Fuchs <christian.fuchs@cfuchs.net>2014-01-26 13:51:21 +0000
commite0f8645fc08ce4839e42f84fac5bcda8a6711392 (patch)
tree28b8afd17012d3718222842a062cd021e9604368 /src/include
parent9bd3837cec8372bb8fc012548629ac543932f240 (diff)
downloadgnunet-e0f8645fc08ce4839e42f84fac5bcda8a6711392.tar.gz
gnunet-e0f8645fc08ce4839e42f84fac5bcda8a6711392.zip
- more work on crypto-paillier
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_crypto_lib.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 5dc76be79..c144bb824 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -385,7 +385,7 @@ struct GNUNET_CRYPTO_PaillierCiphertext
385 /** 385 /**
386 * guaranteed minimum number of homomorphic operations with this ciphertext 386 * guaranteed minimum number of homomorphic operations with this ciphertext
387 */ 387 */
388 uint32_t remaining_ops GNUNET_PACKED; 388 int32_t remaining_ops GNUNET_PACKED;
389 389
390 /** 390 /**
391 * The bits of the ciphertext. 391 * The bits of the ciphertext.
@@ -1386,6 +1386,15 @@ GNUNET_CRYPTO_paillier_hom_add (const struct GNUNET_CRYPTO_PaillierPublicKey *pu
1386 struct GNUNET_CRYPTO_PaillierCiphertext *result); 1386 struct GNUNET_CRYPTO_PaillierCiphertext *result);
1387 1387
1388 1388
1389/**
1390 * Get the number of remaining supported homomorphic operations.
1391 *
1392 * @param c Paillier cipher text.
1393 * @return the number of remaining homomorphic operations
1394 */
1395int
1396GNUNET_CRYPTO_paillier_hom_get_remaining (const struct GNUNET_CRYPTO_PaillierCiphertext *c);
1397
1389#if 0 /* keep Emacsens' auto-indent happy */ 1398#if 0 /* keep Emacsens' auto-indent happy */
1390{ 1399{
1391#endif 1400#endif