GNUnet 0.21.0
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
158
164
169
173};
174
176
177#endif /* SCALARPRODUCT_H */
#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.
Message type passed from client to service to initiate a request or responder role.
Definition: scalarproduct.h:46
uint32_t element_count_total
how many elements the vector in payload contains
Definition: scalarproduct.h:56
uint32_t reserved
Always zero.
Definition: scalarproduct.h:66
struct GNUNET_HashCode session_key
the transaction/session key used to identify a session
Definition: scalarproduct.h:71
uint32_t element_count_contained
contained elements the vector in payload contains
Definition: scalarproduct.h:61
struct GNUNET_PeerIdentity peer
the identity of a remote peer we want to communicate with
Definition: scalarproduct.h:76
struct GNUNET_MessageHeader header
GNUNET message header with type GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_ALICE.
Definition: scalarproduct.h:51
Message type passed from client to service to initiate a request or responder role.
Definition: scalarproduct.h:89
uint32_t element_count_contained
contained elements the vector in payload contains
struct GNUNET_MessageHeader header
GNUNET message header with type GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_BOB.
Definition: scalarproduct.h:94
struct GNUNET_HashCode session_key
the transaction/session key used to identify a session
uint32_t reserved
Always zero.
uint32_t element_count_total
how many elements the vector in payload contains
Definition: scalarproduct.h:99
Message type passed from service client to finalize a session as requester or responder.
uint32_t product_length
0 if no product attached
struct GNUNET_MessageHeader header
GNUNET message header.
int32_t range
Workaround for libgcrypt: -1 if negative, 0 if zero, else 1.
uint32_t status
Status information about the outcome of this session, An enum GNUNET_SCALARPRODUCT_ResponseStatus (in...
multipart messages following struct ComputationMessage
uint32_t element_count_contained
contained elements the vector in payload contains
struct GNUNET_MessageHeader header
GNUNET message header.
A 512-bit hashcode.
Header for all communications.
The identity of the host (wraps the signing key of the peer).