aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2014-01-20 20:24:42 +0000
committerFlorian Dold <florian.dold@gmail.com>2014-01-20 20:24:42 +0000
commita163e338127ae9ed4ef6049dca9dbaddf1ce8c92 (patch)
treec6b3795d56f793b01ad1331c3c754758329bdb45 /src/include
parentba030bb143964697ba0030dcf663a6deff1a1951 (diff)
downloadgnunet-a163e338127ae9ed4ef6049dca9dbaddf1ce8c92.tar.gz
gnunet-a163e338127ae9ed4ef6049dca9dbaddf1ce8c92.zip
- paillier implementation
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_crypto_lib.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 65c8b27dc..0003e8e00 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -1348,12 +1348,14 @@ GNUNET_CRYPTO_paillier_encrypt (const struct GNUNET_CRYPTO_PaillierPublicKey *pu
1348/** 1348/**
1349 * Decrypt a paillier ciphertext with a private key. 1349 * Decrypt a paillier ciphertext with a private key.
1350 * 1350 *
1351 * @param private_key Private key to use for encryption. 1351 * @param private_key Private key to use for decryption.
1352 * @param public_key Public key to use for decryption.
1352 * @param ciphertext Ciphertext to decrypt. 1353 * @param ciphertext Ciphertext to decrypt.
1353 * @param[out] plaintext Decryption of @a ciphertext with @private_key. 1354 * @param[out] plaintext Decryption of @a ciphertext with @private_key.
1354 */ 1355 */
1355void 1356void
1356GNUNET_CRYPTO_paillier_decrypt (const struct GNUNET_CRYPTO_PaillierPrivateKey *private_key, 1357GNUNET_CRYPTO_paillier_decrypt (const struct GNUNET_CRYPTO_PaillierPrivateKey *private_key,
1358 const struct GNUNET_CRYPTO_PaillierPublicKey *public_key,
1357 const struct GNUNET_CRYPTO_PaillierCiphertext *ciphertext, 1359 const struct GNUNET_CRYPTO_PaillierCiphertext *ciphertext,
1358 struct GNUNET_CRYPTO_PaillierPlaintext *plaintext); 1360 struct GNUNET_CRYPTO_PaillierPlaintext *plaintext);
1359 1361
@@ -1376,7 +1378,6 @@ GNUNET_CRYPTO_paillier_hom_add (const struct GNUNET_CRYPTO_PaillierCiphertext *x
1376 const struct GNUNET_CRYPTO_PaillierCiphertext *result); 1378 const struct GNUNET_CRYPTO_PaillierCiphertext *result);
1377 1379
1378 1380
1379
1380#if 0 /* keep Emacsens' auto-indent happy */ 1381#if 0 /* keep Emacsens' auto-indent happy */
1381{ 1382{
1382#endif 1383#endif