aboutsummaryrefslogtreecommitdiff
path: root/doc/man/gnunet-scalarproduct.1
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/gnunet-scalarproduct.1')
-rw-r--r--doc/man/gnunet-scalarproduct.189
1 files changed, 43 insertions, 46 deletions
diff --git a/doc/man/gnunet-scalarproduct.1 b/doc/man/gnunet-scalarproduct.1
index a5c7413ad..88ebb93e7 100644
--- a/doc/man/gnunet-scalarproduct.1
+++ b/doc/man/gnunet-scalarproduct.1
@@ -26,86 +26,83 @@
26.Os 26.Os
27.Sh NAME 27.Sh NAME
28.Nm gnunet-scalarproduct 28.Nm gnunet-scalarproduct
29.Nd 29.Nd compute a vectorproduct
30compute a vectorproduct
31.Sh SYNOPSIS 30.Sh SYNOPSIS
32.Nm 31.Nm
33.Op Fl e Ar ELEMENTS | Fl \-elements= Ns Ar ELEMENTS 32.Op Fl e Ar ELEMENTS | Fl -elements= Ns Ar ELEMENTS
34.Op Fl m Ar MASK | Fl \-mask= Ns Ar MASK 33.Op Fl m Ar MASK | Fl -mask= Ns Ar MASK
35.Op Fl k Ar KEY | Fl \-key= Ns Ar KEY 34.Op Fl k Ar KEY | Fl -key= Ns Ar KEY
36.Op Fl c Ar FILENAME | \-config= Ns Ar FILENAME 35.Op Fl c Ar FILENAME | -config= Ns Ar FILENAME
37.Op Fl p Ar PEERID | Fl \-peer= Ns Ar PEERID 36.Op Fl p Ar PEERID | Fl -peer= Ns Ar PEERID
38.Op Fl h | \-help 37.Op Fl h | -help
39.Op Fl L Ar LOGLEVEL | Fl \-loglevel= Ns Ar LOGLEVEL 38.Op Fl L Ar LOGLEVEL | Fl -loglevel= Ns Ar LOGLEVEL
40.Op Fl v | \-version 39.Op Fl v | -version
41.Sh DESCRIPTION 40.Sh DESCRIPTION
42.Nm 41.Nm
43enables you to compute a vectorproduct across two peers \fBAlice\fP and \fBBob\fP. 42enables you to compute a vectorproduct across two peers
43.Sy Alice
44and
45.Sy Bob .
44.Pp 46.Pp
45A client can issue one of two messages to its service: 47A client can issue one of two messages to its service:
46.TS 48.Bl -enum -width 3n -offset indent
47tab (@); 49.It
48l lx. 50A request to compute a vectorproduct with another peer (Alice)
491@T{ 51.It
50A request to compute a vectorproduct with another peer (\fBAlice\fP) 52Elements to support a peer in computing a vectorproduct (Bob)
51T} 53.El
522@T{ 54.Pp
53Elements to support a peer in computing a vectorproduct (\fBBob\fP)
54T}
55.TE
56Both requests must share the same SID, which can be an arbitrary 55Both requests must share the same SID, which can be an arbitrary
57string identifying the session. SIDs should be unique, however it is 56string identifying the session. SIDs should be unique, however it is
58sufficient to guarantee the uniqueness of the tupel element count and 57sufficient to guarantee the uniqueness of the tupel element count and
59session ID. 58session ID.
60.Pp 59.Pp
61\fBAlice\fP\'s client must supply the ASCII encoded peer ID of bob\'s 60Alice's client must supply the ASCII encoded peer ID of bob's
62service, it will internally be checked by the client for 61service, it will internally be checked by the client for
63validity. Invalid values here result in the client or the service 62validity. Invalid values here result in the client or the service
64failing the session. 63failing the session.
65.Pp 64.Pp
66Elements are handed over as signed decimal integers, the element count 65Elements are handed over as signed decimal integers, the element count
67supplied by \fBAlice\fP and \fBBob\fP must match. \fBAlice\fP can also 66supplied by Alice and Bob must match. Alice can also
68supply a mask for these values to her service, which allows partial 67supply a mask for these values to her service, which allows partial
69vector products to be computed across the vector. Elements can be 68vector products to be computed across the vector. Elements can be
70masked by setting their the corresponding mask element to zero, any 69masked by setting their the corresponding mask element to zero, any
71other value means the element will not be masked. \fBAlice\fP\'s 70other value means the element will not be masked. Alice's
72client will also mask all 0-values to avoid information leakage to 71client will also mask all 0-values to avoid information leakage to
73\fBBob\fP. 72Bob.
74.Pp 73.Pp
75The protocol by definition relies on \fBAlice\fP and \fBBob\fP being 74The protocol by definition relies on Alice and Bob being
76benign, thus \fBBob\fP can arbitrarily falsify his information. Both 75benign, thus Bob can arbitrarily falsify his information. Both
77peers collaborate to achieve a correct result. 76peers collaborate to achieve a correct result.
78.Pp 77.Pp
79The options of 78The options are as follows:
80.Nm 79.Bl -tag -width indent
81are: 80.It Fl e Ar ELEMENTS | Fl -elements= Ns Ar ELEMENTS
82.Bl -tag -width Ds 81The element-vector the vectorproduct should be computed over in
83.It Fl e Ar ELEMENTS | Fl \-elements= Ns Ar ELEMENTS 82signed decimal form, eg: "42,1,-3,3,7".
84The element-vector the vectorproduct should be computed over in signed decimal form, eg: "42,1,-3,3,7".
85Zero value elements will be automatically masked. 83Zero value elements will be automatically masked.
86.It Fl m Ar MASK | Fl \-mask= Ns Ar MASK 84.It Fl m Ar MASK | Fl -mask= Ns Ar MASK
87Elements in the vector can be masked. 85Elements in the vector can be masked.
88There must be at least two elements left in the vector to compute a vectorproduct. 86There must be at least two elements left in the vector to
87compute a vectorproduct.
89Non-Zero values indicate an element is not maskes. 88Non-Zero values indicate an element is not maskes.
90.It Fl k Ar KEY | Fl \-key= Ns Ar KEY 89.It Fl k Ar KEY | Fl -key= Ns Ar KEY
91The session key, a shared string of arbitrary length from which the SID will be generated. 90The session key, a shared string of arbitrary length from which
92.It Fl c Ar FILENAME | Fl \-config= Ns Ar FILENAME 91the SID will be generated.
92.It Fl c Ar FILENAME | Fl -config= Ns Ar FILENAME
93Use the configuration file FILENAME. 93Use the configuration file FILENAME.
94.It Fl p Ar PEERID | Fl \-peer= Ns Ar PEERID 94.It Fl p Ar PEERID | Fl -peer= Ns Ar PEERID
95The remote peer's ASCII-armored gnunet-peer ID as output by 95The remote peer's ASCII-armored gnunet-peer ID as output by
96.Xr gnunet-peerinfo 1 . 96.Xr gnunet-peerinfo 1 .
97If this option is not given, the peer will take the \fBBob\fP\'s role. 97If this option is not given, the peer will take the Bob's role.
98.It Fl h | \-help 98.It Fl h | -help
99Print short help on options. 99Print short help on options.
100.It Fl L Ar LOGLEVEL | Fl \-loglevel= Ns Ar LOGLEVEL 100.It Fl L Ar LOGLEVEL | Fl -loglevel= Ns Ar LOGLEVEL
101Use LOGLEVEL for logging. 101Use LOGLEVEL for logging.
102Valid values are DEBUG, INFO, WARNING and ERROR. 102Valid values are DEBUG, INFO, WARNING and ERROR.
103.It Fl v | \-version 103.It Fl v | -version
104Print GNUnet version number. 104Print GNUnet version number.
105.El 105.El
106.Sh BUGS
107Report bugs by using Mantis <https://bugs.gnunet.org/> or by sending
108electronic mail to <gnunet\-developers@gnu.org>
109.Sh SEE ALSO 106.Sh SEE ALSO
110.Xr gnunet-peerinfo 1 107.Xr gnunet-peerinfo 1
111.sp 108.sp