diff options
Diffstat (limited to 'src/secretsharing/secretsharing_api.c')
-rw-r--r-- | src/secretsharing/secretsharing_api.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/secretsharing/secretsharing_api.c b/src/secretsharing/secretsharing_api.c index 98f800c95..595af751f 100644 --- a/src/secretsharing/secretsharing_api.c +++ b/src/secretsharing/secretsharing_api.c | |||
@@ -316,19 +316,6 @@ handle_decrypt_done (void *cls, | |||
316 | } | 316 | } |
317 | 317 | ||
318 | 318 | ||
319 | /** | ||
320 | * Publish the given ciphertext for decryption. Once a sufficient (>=k) number of peers has | ||
321 | * published the same value, it will be decrypted. | ||
322 | * | ||
323 | * When the operation is canceled, the decrypt_cb is not called anymore, but the calling | ||
324 | * peer may already have irrevocably contributed its share for the decryption of the value. | ||
325 | * | ||
326 | * @param share our secret share to use for decryption | ||
327 | * @param ciphertext ciphertext to publish in order to decrypt it (if enough peers agree) | ||
328 | * @param decrypt_cb callback called once the decryption succeeded | ||
329 | * @param decrypt_cb_cls closure for @a decrypt_cb | ||
330 | * @return handle to cancel the operation | ||
331 | */ | ||
332 | struct GNUNET_SECRETSHARING_DecryptionHandle * | 319 | struct GNUNET_SECRETSHARING_DecryptionHandle * |
333 | GNUNET_SECRETSHARING_decrypt (const struct GNUNET_CONFIGURATION_Handle *cfg, | 320 | GNUNET_SECRETSHARING_decrypt (const struct GNUNET_CONFIGURATION_Handle *cfg, |
334 | struct GNUNET_SECRETSHARING_Share *share, | 321 | struct GNUNET_SECRETSHARING_Share *share, |
@@ -431,19 +418,6 @@ GNUNET_SECRETSHARING_plaintext_generate_i (struct | |||
431 | } | 418 | } |
432 | 419 | ||
433 | 420 | ||
434 | /** | ||
435 | * Encrypt a value. This operation is executed locally, no communication is | ||
436 | * necessary. | ||
437 | * | ||
438 | * This is a helper function, encryption can be done solely with a session's public key | ||
439 | * and the crypto system parameters. | ||
440 | * | ||
441 | * @param public_key public key to use for decryption | ||
442 | * @param message message to encrypt | ||
443 | * @param message_size number of bytes in @a message | ||
444 | * @param result_ciphertext pointer to store the resulting ciphertext | ||
445 | * @return #GNUNET_YES on success, #GNUNET_SYSERR if the message is invalid (invalid range) | ||
446 | */ | ||
447 | int | 421 | int |
448 | GNUNET_SECRETSHARING_encrypt (const struct | 422 | GNUNET_SECRETSHARING_encrypt (const struct |
449 | GNUNET_SECRETSHARING_PublicKey *public_key, | 423 | GNUNET_SECRETSHARING_PublicKey *public_key, |