diff options
Diffstat (limited to 'src/scalarproduct/scalarproduct.h')
-rw-r--r-- | src/scalarproduct/scalarproduct.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/scalarproduct/scalarproduct.h b/src/scalarproduct/scalarproduct.h index af2e251e1..18e782ac0 100644 --- a/src/scalarproduct/scalarproduct.h +++ b/src/scalarproduct/scalarproduct.h | |||
@@ -42,7 +42,7 @@ extern "C" | |||
42 | #define KEYBITS 2048 | 42 | #define KEYBITS 2048 |
43 | 43 | ||
44 | /** | 44 | /** |
45 | * When performing our crypto, we may add two encrypted values with each | 45 | * When performing our crypto, we may add two encrypted values with each |
46 | * a maximal length of GNUNET_CRYPTO_RSA_DATA_ENCODING_LENGTH. | 46 | * a maximal length of GNUNET_CRYPTO_RSA_DATA_ENCODING_LENGTH. |
47 | * thus we can receive a slightly longer element (+1 byte) | 47 | * thus we can receive a slightly longer element (+1 byte) |
48 | */ | 48 | */ |
@@ -60,7 +60,7 @@ extern "C" | |||
60 | /////////////////////////////////////////////////////////////////////////////// | 60 | /////////////////////////////////////////////////////////////////////////////// |
61 | 61 | ||
62 | /** | 62 | /** |
63 | * Message type passed from client to service | 63 | * Message type passed from client to service |
64 | * to initiate a request or responder role | 64 | * to initiate a request or responder role |
65 | */ | 65 | */ |
66 | struct GNUNET_SCALARPRODUCT_client_request | 66 | struct GNUNET_SCALARPRODUCT_client_request |
@@ -94,7 +94,7 @@ struct GNUNET_SCALARPRODUCT_client_request | |||
94 | * followed by long vector[element_count] | [unsigned char mask[mask_bytes]] | 94 | * followed by long vector[element_count] | [unsigned char mask[mask_bytes]] |
95 | */ | 95 | */ |
96 | }; | 96 | }; |
97 | 97 | ||
98 | /** | 98 | /** |
99 | * Message type passed from requesting service Alice to responding service Bob | 99 | * Message type passed from requesting service Alice to responding service Bob |
100 | * to initiate a request and make bob participate in our protocol | 100 | * to initiate a request and make bob participate in our protocol |
@@ -109,12 +109,12 @@ struct GNUNET_SCALARPRODUCT_service_request { | |||
109 | * how many elements the total message including all multipart msgs contains | 109 | * how many elements the total message including all multipart msgs contains |
110 | */ | 110 | */ |
111 | uint32_t total_element_count GNUNET_PACKED; | 111 | uint32_t total_element_count GNUNET_PACKED; |
112 | 112 | ||
113 | /** | 113 | /** |
114 | * how many elements are actually included after the mask was applied. | 114 | * how many elements are actually included after the mask was applied. |
115 | */ | 115 | */ |
116 | uint32_t contained_element_count GNUNET_PACKED; | 116 | uint32_t contained_element_count GNUNET_PACKED; |
117 | 117 | ||
118 | /** | 118 | /** |
119 | * how many bytes the mask has | 119 | * how many bytes the mask has |
120 | */ | 120 | */ |
@@ -153,7 +153,7 @@ struct GNUNET_SCALARPRODUCT_multipart_message { | |||
153 | * how many elements we supply within this message | 153 | * how many elements we supply within this message |
154 | */ | 154 | */ |
155 | uint32_t multipart_element_count GNUNET_PACKED; | 155 | uint32_t multipart_element_count GNUNET_PACKED; |
156 | 156 | ||
157 | // followed by vector[multipart_element_count] or k[i][perm] | 157 | // followed by vector[multipart_element_count] or k[i][perm] |
158 | }; | 158 | }; |
159 | 159 | ||
@@ -171,12 +171,12 @@ struct GNUNET_SCALARPRODUCT_service_response { | |||
171 | * how many elements the session input had | 171 | * how many elements the session input had |
172 | */ | 172 | */ |
173 | uint32_t total_element_count GNUNET_PACKED; | 173 | uint32_t total_element_count GNUNET_PACKED; |
174 | 174 | ||
175 | /** | 175 | /** |
176 | * how many elements were included after the mask was applied including all multipart msgs. | 176 | * how many elements were included after the mask was applied including all multipart msgs. |
177 | */ | 177 | */ |
178 | uint32_t used_element_count GNUNET_PACKED; | 178 | uint32_t used_element_count GNUNET_PACKED; |
179 | 179 | ||
180 | /** | 180 | /** |
181 | * how many elements this individual message delivers | 181 | * how many elements this individual message delivers |
182 | */ | 182 | */ |
@@ -227,7 +227,7 @@ struct GNUNET_SCALARPRODUCT_client_response | |||
227 | * followed by product of length product_length (or nothing) | 227 | * followed by product of length product_length (or nothing) |
228 | */ | 228 | */ |
229 | }; | 229 | }; |
230 | 230 | ||
231 | #ifdef __cplusplus | 231 | #ifdef __cplusplus |
232 | } | 232 | } |
233 | #endif | 233 | #endif |