diff options
author | Florian Dold <florian.dold@gmail.com> | 2014-01-20 20:24:42 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2014-01-20 20:24:42 +0000 |
commit | a163e338127ae9ed4ef6049dca9dbaddf1ce8c92 (patch) | |
tree | c6b3795d56f793b01ad1331c3c754758329bdb45 /src | |
parent | ba030bb143964697ba0030dcf663a6deff1a1951 (diff) | |
download | gnunet-a163e338127ae9ed4ef6049dca9dbaddf1ce8c92.tar.gz gnunet-a163e338127ae9ed4ef6049dca9dbaddf1ce8c92.zip |
- paillier implementation
Diffstat (limited to 'src')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 5 | ||||
-rw-r--r-- | src/util/Makefile.am | 1 |
2 files changed, 4 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 | */ |
1355 | void | 1356 | void |
1356 | GNUNET_CRYPTO_paillier_decrypt (const struct GNUNET_CRYPTO_PaillierPrivateKey *private_key, | 1357 | GNUNET_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 |
diff --git a/src/util/Makefile.am b/src/util/Makefile.am index b502adb4b..4fb80285b 100644 --- a/src/util/Makefile.am +++ b/src/util/Makefile.am | |||
@@ -92,6 +92,7 @@ libgnunetutil_la_SOURCES = \ | |||
92 | crypto_hkdf.c \ | 92 | crypto_hkdf.c \ |
93 | crypto_kdf.c \ | 93 | crypto_kdf.c \ |
94 | crypto_mpi.c \ | 94 | crypto_mpi.c \ |
95 | crypto_paillier.c \ | ||
95 | crypto_random.c \ | 96 | crypto_random.c \ |
96 | disk.c \ | 97 | disk.c \ |
97 | disk.h \ | 98 | disk.h \ |