25#ifndef SCALARPRODUCT_H
26#define SCALARPRODUCT_H
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)
#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.
uint32_t element_count_total
how many elements the vector in payload contains
uint32_t reserved
Always zero.
struct GNUNET_HashCode session_key
the transaction/session key used to identify a session
uint32_t element_count_contained
contained elements the vector in payload contains
struct GNUNET_PeerIdentity peer
the identity of a remote peer we want to communicate with
struct GNUNET_MessageHeader header
GNUNET message header with type GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_ALICE.
Message type passed from client to service to initiate a request or responder role.
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.
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
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.
The identity of the host (wraps the signing key of the peer).