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