diff options
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). |