aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Fuchs <christian.fuchs@cfuchs.net>2014-01-21 09:31:38 +0000
committerChristian Fuchs <christian.fuchs@cfuchs.net>2014-01-21 09:31:38 +0000
commiteb31587bd824d3a462bf0595f5ce685f66c42d49 (patch)
tree32de15fbcc90147f703d07f55fe71f2ceaa74cf4 /src/include
parent6c7fbc16f10f6ad752cfbdf6e6f892f65cb9d160 (diff)
downloadgnunet-eb31587bd824d3a462bf0595f5ce685f66c42d49.tar.gz
gnunet-eb31587bd824d3a462bf0595f5ce685f66c42d49.zip
- first extension of paillier with foolproof homomorphism support (ciphertext container carries information on support ops)
- adjusted encryt/decrypt functionality to handle gcry_mpi_t, not a plaintext container
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_crypto_lib.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 183231c9b..b6e10d1b7 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -383,6 +383,11 @@ struct GNUNET_CRYPTO_PaillierPlaintext
383struct GNUNET_CRYPTO_PaillierCiphertext 383struct GNUNET_CRYPTO_PaillierCiphertext
384{ 384{
385 /** 385 /**
386 * guaranteed minimum number of homomorphic operations with this ciphertext
387 */
388 uint32_t remaining_ops GNUNET_PACKED;
389
390 /**
386 * The bits of the ciphertext. 391 * The bits of the ciphertext.
387 */ 392 */
388 unsigned char bits[GNUNET_CRYPTO_PAILLIER_BITS * 2 / 8]; 393 unsigned char bits[GNUNET_CRYPTO_PAILLIER_BITS * 2 / 8];