GNUnet  0.11.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, _ ( \
36  "`%s' failed at %s:%d with error: %s\n"), \
37  cmd, __FILE__, __LINE__, \
38  gcry_strerror (rc)); } while (0)
39 
40 
46 {
52 
57 
62 
67 
72 
77 
81 };
82 
83 
89 {
95 
100 
105 
110 
115 
119 };
120 
121 
126 {
131 
136 
140 };
141 
142 
148 {
153 
157  uint32_t product_length GNUNET_PACKED;
158 
164 
168  int32_t range GNUNET_PACKED;
169 
173 };
174 
176 
177 #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:51
uint32_t reserved
Always zero.
Definition: scalarproduct.h:66
#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:45
struct GNUNET_HashCode session_key
the transaction/session key used to identify a session
Definition: scalarproduct.h:71
struct GNUNET_PeerIdentity peer
the identity of a remote peer we want to communicate with
Definition: scalarproduct.h:76
uint32_t element_count_total
how many elements the vector in payload contains
Definition: scalarproduct.h:56
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:61
multipart messages following struct ComputationMessage
Message type passed from client to service to initiate a request or responder role.
Definition: scalarproduct.h:88
Header for all communications.