aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_signatures.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_signatures.h')
-rw-r--r--src/include/gnunet_signatures.h194
1 files changed, 91 insertions, 103 deletions
diff --git a/src/include/gnunet_signatures.h b/src/include/gnunet_signatures.h
index 7c0c1d104..6ec30bf71 100644
--- a/src/include/gnunet_signatures.h
+++ b/src/include/gnunet_signatures.h
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet
3 Copyright (C) 2009 GNUnet e.V. 3 Copyright (C) 2012-2022 GNUnet e.V.
4 4
5 GNUnet is free software: you can redistribute it and/or modify it 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 6 under the terms of the GNU Affero General Public License as published
@@ -17,250 +17,238 @@
17 17
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19 */ 19 */
20#ifndef GNUNET_SIGNATURES_H
21#define GNUNET_SIGNATURES_H
20 22
21/** 23/**
22 * @author Christian Grothoff 24 * WARNING:
23 * 25 * This header is generated!
24 * @file 26 * In order to add a signature purpose, you must register
25 * Constants for network signatures 27 * them in GANA, and then use the header generation script
26 * 28 * to create an update of this file. You may then replace this
27 * @defgroup signatures Network signature definitions 29 * file with the update.
28 * @{
29 */ 30 */
30 31
31#ifndef GNUNET_SIGNATURES_H 32
32#define GNUNET_SIGNATURES_H
33 33
34#ifdef __cplusplus 34#ifdef __cplusplus
35extern "C" 35extern "C" {
36{ 36#if 0 /* keep Emacsens' auto-indent happy */
37#if 0 /* keep Emacsens' auto-indent happy */
38} 37}
39#endif 38#endif
40#endif 39#endif
41 40
41
42/** 42/**
43 * Test signature, not valid for anything other than writing 43 * Network signature purpose definitions. Note that all values
44 * a test. (Note that the signature verification code will 44 * must be uint32_t and encoded in network byte order in the structs.
45 * accept this value). 45 */
46
47
48
49/**
50 * Test signature, not valid for anything other than writing a test. (Note that the signature verification code will accept this value). (GNUnet)
46 */ 51 */
47#define GNUNET_SIGNATURE_PURPOSE_TEST 0 52#define GNUNET_SIGNATURE_PURPOSE_TEST 0
48 53
54
49/** 55/**
50 * Signature for confirming that this peer uses a particular address. 56 * Signature for confirming that this peer uses a particular address. (GNUnet-TRANSPORT)
51 */ 57 */
52#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN 1 58#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN 1
53 59
60
54/** 61/**
55 * Signature for confirming that this peer intends to disconnect. 62 * Signature for confirming that this peer intends to disconnect. (GNUnet-TRANSPORT)
56 */ 63 */
57#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DISCONNECT 2 64#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DISCONNECT 2
58 65
66
59/** 67/**
60 * Signature for confirming a key revocation. 68 * GNS zone key revocation (GNS)
61 */ 69 */
62#define GNUNET_SIGNATURE_PURPOSE_REVOCATION 3 70#define GNUNET_SIGNATURE_PURPOSE_GNS_REVOCATION 3
71
63 72
64/** 73/**
65 * Signature for a namespace/pseudonym advertisement (by 74 * Signature for a namespace/pseudonym advertisement (by the namespace owner). (GNUnet-FS)
66 * the namespace owner).
67 */ 75 */
68#define GNUNET_SIGNATURE_PURPOSE_NAMESPACE_ADVERTISEMENT 4 76#define GNUNET_SIGNATURE_PURPOSE_NAMESPACE_ADVERTISEMENT 4
69 77
78
70/** 79/**
71 * Signature by which a peer affirms that it is 80 * Signature by which a peer affirms that it is providing a certain bit of content for use in LOCation URIs. (GNUnet-FS)
72 * providing a certain bit of content (used
73 * in LOCation URIs).
74 */ 81 */
75#define GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT 5 82#define GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT 5
76 83
77/**
78 * Obsolete, legacy value.
79 */
80#define GNUNET_SIGNATURE_PURPOSE_FS_KBLOCK 6
81 84
82/** 85/**
83 * Obsolete, legacy value. 86 * Signature by which a peer affirms that it forwarded a message in the DHT. (GNUnet-DHT)
84 */ 87 */
85#define GNUNET_SIGNATURE_PURPOSE_FS_SBLOCK 7 88#define GNUNET_SIGNATURE_PURPOSE_DHT_HOP 6
86 89
87/**
88 * Obsolete, legacy value.
89 */
90#define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK 8
91 90
92/** 91/**
93 * Obsolete, legacy value. 92 * Signature by which a peer affirms its address. (GNUnet-HELLO)
94 */ 93 */
95#define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK_KSIG 9 94#define GNUNET_SIGNATURE_PURPOSE_HELLO 7
96 95
97/**
98 *
99 */
100#define GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE 10
101 96
102/** 97/**
103 * Signature of an GNUNET_DNS_Advertisement 98 * Signature on a GNUNET_DNS_Advertisement. (GNUnet-DNS+Exit)
104 */ 99 */
105#define GNUNET_SIGNATURE_PURPOSE_DNS_RECORD 11 100#define GNUNET_SIGNATURE_PURPOSE_DNS_RECORD 11
106 101
102
107/** 103/**
108 * Signature of a chat message. 104 * Signature of a chat message. (GNUnet-MESSENGER)
109 */ 105 */
110#define GNUNET_SIGNATURE_PURPOSE_CHAT_MESSAGE 12 106#define GNUNET_SIGNATURE_PURPOSE_CHAT_MESSAGE 12
111 107
108
112/** 109/**
113 * Signature of confirmation receipt for a chat message. 110 * Signature of confirmation receipt for a chat message. (GNUnet-MESSENGER)
114 */ 111 */
115#define GNUNET_SIGNATURE_PURPOSE_CHAT_RECEIPT 13 112#define GNUNET_SIGNATURE_PURPOSE_CHAT_RECEIPT 13
116 113
114
117/** 115/**
118 * Signature of a network size estimate message. 116 * Signature of a network size estimate message. (GNUnet-NSE)
119 */ 117 */
120#define GNUNET_SIGNATURE_PURPOSE_NSE_SEND 14 118#define GNUNET_SIGNATURE_PURPOSE_NSE_SEND 14
121 119
120
122/** 121/**
123 * Signature of a gnunet naming system record block 122 * GNS record set signature (GNS)
124 */ 123 */
125#define GNUNET_SIGNATURE_PURPOSE_GNS_RECORD_SIGN 15 124#define GNUNET_SIGNATURE_PURPOSE_GNS_RECORD_SIGN 15
126 125
126
127/** 127/**
128 * Purpose is to set a session key. 128 * Purpose is to set a session key. (GNUnet-CORE)
129 */ 129 */
130#define GNUNET_SIGNATURE_PURPOSE_SET_ECC_KEY 16 130#define GNUNET_SIGNATURE_PURPOSE_SET_ECC_KEY 16
131 131
132
132/** 133/**
133 * UBlock Signature, done using DSS, not ECC 134 * UBlock Signature, done using DSS, not ECC (GNUnet-FS)
134 */ 135 */
135#define GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK 17 136#define GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK 17
136 137
138
137/** 139/**
138 * Accept state in regex DFA. Peer affirms that 140 * Accept state in regex DFA. Peer affirms that it offers the matching service. (GNUnet-REGEX)
139 * it offers the matching service.
140 */ 141 */
141#define GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT 18 142#define GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT 18
142 143
143/**
144 * Signature of a multicast message sent by the origin.
145 */
146#define GNUNET_SIGNATURE_PURPOSE_MULTICAST_MESSAGE 19
147 144
148/** 145/**
149 * Signature of a conversation ring. 146 * Signature of a conversation ring. (GNUnet-CONVERSATION)
150 */ 147 */
151#define GNUNET_SIGNATURE_PURPOSE_CONVERSATION_RING 20 148#define GNUNET_SIGNATURE_PURPOSE_CONVERSATION_RING 20
152 149
150
153/** 151/**
154 * Signature for the first round of distributed key generation. 152 * Signature for the first round of distributed key generation. (GNUnet-SECRETSHARING)
155 */ 153 */
156#define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG1 21 154#define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG1 21
157 155
158/**
159 * Signature for the second round of distributed key generation.
160 */
161#define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG2 22
162 156
163/** 157/**
164 * Signature for cooperatice decryption. 158 * Signature for the second round of distributed key generation. (GNUnet-SECRETSHARING)
165 */ 159 */
166#define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DECRYPTION 23 160#define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG2 22
167 161
168/**
169 * Signature of a multicast request sent by a member.
170 */
171#define GNUNET_SIGNATURE_PURPOSE_MULTICAST_REQUEST 24
172 162
173/** 163/**
174 * Signature for a sensor anomaly report message. 164 * Signature for the cooperative decryption. (GNUnet-SECRETSHARING)
175 */ 165 */
176#define GNUNET_SIGNATURE_PURPOSE_SENSOR_ANOMALY_REPORT 25 166#define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DECRYPTION 23
177 167
178/**
179 * Signature for a GNUid Token
180 */
181#define GNUNET_SIGNATURE_PURPOSE_GNUID_TOKEN 26
182 168
183/** 169/**
184 * Signature for a GNUid Ticket 170 * Signature for a GNUid Ticket (Reclaim)
185 */ 171 */
186#define GNUNET_SIGNATURE_PURPOSE_RECLAIM_CODE_SIGN 27 172#define GNUNET_SIGNATURE_PURPOSE_RECLAIM_CODE_SIGN 27
187 173
174
188/** 175/**
189 * Signature for a GNUnet credential 176 * Signature for a GNUnet credential (Reclaim)
190 */ 177 */
191#define GNUNET_SIGNATURE_PURPOSE_DELEGATE 28 178#define GNUNET_SIGNATURE_PURPOSE_DELEGATE 28
192 179
180
193/** 181/**
194 * Signature by a peer affirming that this is one of its 182 * Signature by a peer affirming that this is one of its addresses for the given time period. (GNUnet-TRANSPORT)
195 * addresses (for the given time period).
196 */ 183 */
197#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_ADDRESS 29 184#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_ADDRESS 29
198 185
186
199/** 187/**
200 * Signature by a peer affirming that the given ephemeral 188 * Signature by a peer affirming that the given ephemeral key is currently in use by that peer's transport service. (GNUnet-TRANSPORT)
201 * key is currently in use by that peer's transport service.
202 */ 189 */
203#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_EPHEMERAL 30 190#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_EPHEMERAL 30
204 191
192
205/** 193/**
206 * Signature used by TCP communicator handshake, 194 * Signature used by TCP communicator handshake. (GNUnet-TRANSPORT-TCP)
207 */ 195 */
208#define GNUNET_SIGNATURE_COMMUNICATOR_TCP_HANDSHAKE 31 196#define GNUNET_SIGNATURE_PURPOSE_COMMUNICATOR_TCP_HANDSHAKE 31
197
209 198
210/** 199/**
211 * Signature used by TCP communicator rekey. 200 * Signature used by TCP communicator rekey. (GNUnet-TRANSPORT-TCP)
212 */ 201 */
213#define GNUNET_SIGNATURE_COMMUNICATOR_TCP_REKEY 32 202#define GNUNET_SIGNATURE_PURPOSE_COMMUNICATOR_TCP_REKEY 32
203
214 204
215/** 205/**
216 * Signature used by UDP communicator handshake 206 * Signature used by UDP communicator handshake. (GNUnet-TRANSPORT-UDP)
217 */ 207 */
218#define GNUNET_SIGNATURE_COMMUNICATOR_UDP_HANDSHAKE 33 208#define GNUNET_SIGNATURE_PURPOSE_COMMUNICATOR_UDP_HANDSHAKE 33
209
219 210
220/** 211/**
221 * Signature used by UDP broadcasts. 212 * Signature used by UDP broadcasts. (GNUnet-TRANSPORT-UDP)
222 */ 213 */
223#define GNUNET_SIGNATURE_COMMUNICATOR_UDP_BROADCAST 34 214#define GNUNET_SIGNATURE_PURPOSE_COMMUNICATOR_UDP_BROADCAST 34
215
224 216
225/** 217/**
226 * Signature by a peer affirming that it received a 218 * Signature by a peer affirming that it received a challenge (and stating how long it expects the address on which the challenge was received to remain valid). (GNUnet-TRANSPORT)
227 * challenge (and stating how long it expects the
228 * address on which the challenge was received to
229 * remain valid).
230 */ 219 */
231#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_CHALLENGE 35 220#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_CHALLENGE 35
232 221
222
233/** 223/**
234 * Signature by a peer affirming that it is on a DV path. 224 * Signature by a peer affirming that it is on a DV path. (GNUnet-TRANSPORT)
235 */ 225 */
236#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DV_HOP 36 226#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DV_HOP 36
237 227
228
238/** 229/**
239 * Signature by a peer affirming that it originated the 230 * Signature by a peer affirming that it originated the DV path. (GNUnet-TRANSPORT)
240 * DV path.
241 */ 231 */
242#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DV_INITIATOR 37 232#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DV_INITIATOR 37
243 233
234
244/** 235/**
245 * Signature by a peer that like to create a connection. 236 * Signature by a peer that like to create a connection. (GNUnet-CADET)
246 */ 237 */
247#define GNUNET_SIGNATURE_PURPOSE_CADET_CONNECTION_INITIATOR 38 238#define GNUNET_SIGNATURE_PURPOSE_CADET_CONNECTION_INITIATOR 38
248 239
240
249/** 241/**
250 * Signature by a peer sending back the nonce received at initial handshake. 242 * Signature by a peer sending back the nonce received at initial handshake. (GNUnet-TRANSPORT-TCP)
251 */ 243 */
252#define GNUNET_SIGNATURE_COMMUNICATOR_TCP_HANDSHAKE_ACK 39 244#define GNUNET_SIGNATURE_PURPOSE_COMMUNICATOR_TCP_HANDSHAKE_ACK 39
253 245
254#if 0 /* keep Emacsens' auto-indent happy */ 246
247#if 0 /* keep Emacsens' auto-indent happy */
255{ 248{
256#endif 249#endif
257#ifdef __cplusplus 250#ifdef __cplusplus
258} 251}
259#endif 252#endif
260 253
261/* ifndef GNUNET_SIGNATURES_H */
262#endif 254#endif
263
264/** @} */ /* end of group */
265
266/* end of gnunet_signatures.h */