GNUnet  0.10.x
scalarproduct.h
Go to the documentation of this file.
1 /*
2  This file is part of GNUnet.
3  Copyright (C) 2009, 2010, 2011, 2012, 2013 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  */
25 #ifndef SCALARPRODUCT_H
26 #define SCALARPRODUCT_H
27 
29 
35 #define LOG_GCRY(level, cmd, rc) do { LOG(level, _("`%s' failed at %s:%d with error: %s\n"), cmd, __FILE__, __LINE__, gcry_strerror(rc)); } while (0)
36 
37 
48 
53 
58 
63 
68 
73 
77 };
78 
79 
90 
95 
100 
105 
110 
114 };
115 
116 
125 
130 
134 };
135 
136 
146 
150  uint32_t product_length GNUNET_PACKED;
151 
157 
161  int32_t range GNUNET_PACKED;
162 
166 };
167 
169 
170 #endif /* SCALARPRODUCT_H */
Message type passed from service client to finalize a session as requester or responder.
struct GNUNET_MessageHeader header
GNUNET message header with type GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_ALICE.
Definition: scalarproduct.h:47
uint32_t reserved
Always zero.
Definition: scalarproduct.h:62
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won&#39;t work on W32.
Message type passed from client to service to initiate a request or responder role.
Definition: scalarproduct.h:42
struct GNUNET_HashCode session_key
the transaction/session key used to identify a session
Definition: scalarproduct.h:67
struct GNUNET_PeerIdentity peer
the identity of a remote peer we want to communicate with
Definition: scalarproduct.h:72
uint32_t element_count_total
how many elements the vector in payload contains
Definition: scalarproduct.h:52
uint16_t status
See PRISM_STATUS_*-constants.
A 512-bit hashcode.
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won&#39;t work on W32;.
The identity of the host (wraps the signing key of the peer).
#define GNUNET_PACKED
gcc-ism to get packed structs.
uint32_t element_count_contained
contained elements the vector in payload contains
Definition: scalarproduct.h:57
multipart messages following struct ComputationMessage
Message type passed from client to service to initiate a request or responder role.
Definition: scalarproduct.h:84
Header for all communications.