diff options
author | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-10-07 14:49:05 +0000 |
---|---|---|
committer | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-10-07 14:49:05 +0000 |
commit | 644907f75bc0e24b1294f7cf39416b0e4216bcb3 (patch) | |
tree | 41fbddbed54c6514b2678faac72b2a6b2177f2a6 /src/scalarproduct/scalarproduct.h | |
parent | 6987c2bcfeb806cb4c223c8766ccfcd4358644b6 (diff) | |
download | gnunet-644907f75bc0e24b1294f7cf39416b0e4216bcb3.tar.gz gnunet-644907f75bc0e24b1294f7cf39416b0e4216bcb3.zip |
towards multipart messages
Diffstat (limited to 'src/scalarproduct/scalarproduct.h')
-rw-r--r-- | src/scalarproduct/scalarproduct.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/scalarproduct/scalarproduct.h b/src/scalarproduct/scalarproduct.h index 18e782ac0..d476ae8ff 100644 --- a/src/scalarproduct/scalarproduct.h +++ b/src/scalarproduct/scalarproduct.h | |||
@@ -49,6 +49,11 @@ extern "C" | |||
49 | #define PAILLIER_ELEMENT_LENGTH (2*KEYBITS/8 +1) | 49 | #define PAILLIER_ELEMENT_LENGTH (2*KEYBITS/8 +1) |
50 | 50 | ||
51 | /** | 51 | /** |
52 | * Maximum count of elements we can put into a multipart message | ||
53 | */ | ||
54 | #define MULTIPART_ELEMENT_CAPACITY ((GNUNET_SERVER_MAX_MESSAGE_SIZE - 1 - sizeof (struct GNUNET_SCALARPRODUCT_multipart_message)) / PAILLIER_ELEMENT_LENGTH) | ||
55 | |||
56 | /** | ||
52 | * Log an error message at log-level 'level' that indicates | 57 | * Log an error message at log-level 'level' that indicates |
53 | * a failure of the command 'cmd' with the message given | 58 | * a failure of the command 'cmd' with the message given |
54 | * by gcry_strerror(rc). | 59 | * by gcry_strerror(rc). |