diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-07 21:55:41 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-07 21:55:41 +0000 |
commit | 7082f581f7f7c32fba7af6c22175efc6db2dae61 (patch) | |
tree | 3d37efbd3bd20b706faf731e792109b19bedd426 /src/scalarproduct/gnunet-service-scalarproduct_alice.c | |
parent | 67eeadf357c24abec2dd790a54be74b7db71560d (diff) | |
download | gnunet-7082f581f7f7c32fba7af6c22175efc6db2dae61.tar.gz gnunet-7082f581f7f7c32fba7af6c22175efc6db2dae61.zip |
-simplify further, too much checking...
Diffstat (limited to 'src/scalarproduct/gnunet-service-scalarproduct_alice.c')
-rw-r--r-- | src/scalarproduct/gnunet-service-scalarproduct_alice.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/scalarproduct/gnunet-service-scalarproduct_alice.c b/src/scalarproduct/gnunet-service-scalarproduct_alice.c index 522af201d..ce796aa05 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct_alice.c +++ b/src/scalarproduct/gnunet-service-scalarproduct_alice.c | |||
@@ -731,13 +731,6 @@ handle_bobs_cryptodata_message (void *cls, | |||
731 | return GNUNET_SYSERR; | 731 | return GNUNET_SYSERR; |
732 | } | 732 | } |
733 | msg = (const struct BobCryptodataMessage *) message; | 733 | msg = (const struct BobCryptodataMessage *) message; |
734 | GNUNET_break_op (0 == ntohl (msg->reserved)); | ||
735 | if (s->used_element_count != ntohl (msg->intersection_element_count)) | ||
736 | { | ||
737 | /* Alice and Bob disagree on intersection set size, bad news! */ | ||
738 | GNUNET_break_op (0); | ||
739 | return GNUNET_SYSERR; | ||
740 | } | ||
741 | contained = ntohl (msg->contained_element_count); | 734 | contained = ntohl (msg->contained_element_count); |
742 | required_size = sizeof (struct BobCryptodataMessage) | 735 | required_size = sizeof (struct BobCryptodataMessage) |
743 | + 2 * contained * sizeof (struct GNUNET_CRYPTO_PaillierCiphertext) | 736 | + 2 * contained * sizeof (struct GNUNET_CRYPTO_PaillierCiphertext) |