GNUnet 0.21.1
gnunet-service-scalarproduct.h
Go to the documentation of this file.
1/*
2 This file is part of GNUnet.
3 Copyright (C) 2013, 2014 GNUnet e.V.
4
5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 SPDX-License-Identifier: AGPL3.0-or-later
19 */
26#ifndef GNUNET_SERVICE_SCALARPRODUCT_H
27#define GNUNET_SERVICE_SCALARPRODUCT_H
28
29
31
41{
46
50 uint32_t reserved;
51
56
61};
62
63
70{
75
80
84};
85
86
95{
101
106
110};
111
112
121{
126
131
136};
137
138
140
141
142#endif
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32.
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32;.
#define GNUNET_PACKED
gcc-ism to get packed structs.
Vector of Pallier-encrypted values sent by Alice to Bob (after set intersection).
uint32_t contained_element_count
How many elements we appended to this message? In NBO.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_CRYPTODATA.
Message type passed from responding service Bob to responding service Alice to complete a request and...
uint32_t contained_element_count
How many elements this individual message delivers (in NBO).
struct GNUNET_MessageHeader header
GNUNET message header with type GNUNET_MESSAGE_TYPE_SCALARPRODUCT_BOB_CRYPTODATA.
Multipart Message type passed between to supply additional elements for the peer.
struct GNUNET_MessageHeader header
GNUNET message header.
uint32_t contained_element_count
How many elements we supply within this message? In NBO.
A 512-bit hashcode.
Header for all communications.
Message type passed from requesting service Alice to responding service Bob to initiate a request and...
uint32_t reserved
For alignment.
struct GNUNET_HashCode session_id
The transaction/session key used to identify a session.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_SCALARPRODUCT_SESSION_INITIALIZATION.
struct GNUNET_CRYPTO_PaillierPublicKey public_key
Alice's public key.