GNUnet  0.11.x
Macros
Network signature definitions

Macros

#define GNUNET_SIGNATURE_PURPOSE_TEST   0
 Test signature, not valid for anything other than writing a test. More...
 
#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN   1
 Signature for confirming that this peer uses a particular address. More...
 
#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DISCONNECT   2
 Signature for confirming that this peer intends to disconnect. More...
 
#define GNUNET_SIGNATURE_PURPOSE_REVOCATION   3
 Signature for confirming a key revocation. More...
 
#define GNUNET_SIGNATURE_PURPOSE_NAMESPACE_ADVERTISEMENT   4
 Signature for a namespace/pseudonym advertisement (by the namespace owner). More...
 
#define GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT   5
 Signature by which a peer affirms that it is providing a certain bit of content (used in LOCation URIs). More...
 
#define GNUNET_SIGNATURE_PURPOSE_FS_KBLOCK   6
 Obsolete, legacy value. More...
 
#define GNUNET_SIGNATURE_PURPOSE_FS_SBLOCK   7
 Obsolete, legacy value. More...
 
#define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK   8
 Obsolete, legacy value. More...
 
#define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK_KSIG   9
 Obsolete, legacy value. More...
 
#define GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE   10
 
#define GNUNET_SIGNATURE_PURPOSE_DNS_RECORD   11
 Signature of an GNUNET_DNS_Advertisement. More...
 
#define GNUNET_SIGNATURE_PURPOSE_CHAT_MESSAGE   12
 Signature of a chat message. More...
 
#define GNUNET_SIGNATURE_PURPOSE_CHAT_RECEIPT   13
 Signature of confirmation receipt for a chat message. More...
 
#define GNUNET_SIGNATURE_PURPOSE_NSE_SEND   14
 Signature of a network size estimate message. More...
 
#define GNUNET_SIGNATURE_PURPOSE_GNS_RECORD_SIGN   15
 Signature of a gnunet naming system record block. More...
 
#define GNUNET_SIGNATURE_PURPOSE_SET_ECC_KEY   16
 Purpose is to set a session key. More...
 
#define GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK   17
 UBlock Signature, done using DSS, not ECC. More...
 
#define GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT   18
 Accept state in regex DFA. More...
 
#define GNUNET_SIGNATURE_PURPOSE_MULTICAST_MESSAGE   19
 Signature of a multicast message sent by the origin. More...
 
#define GNUNET_SIGNATURE_PURPOSE_CONVERSATION_RING   20
 Signature of a conversation ring. More...
 
#define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG1   21
 Signature for the first round of distributed key generation. More...
 
#define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG2   22
 Signature for the second round of distributed key generation. More...
 
#define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DECRYPTION   23
 Signature for cooperatice decryption. More...
 
#define GNUNET_SIGNATURE_PURPOSE_MULTICAST_REQUEST   24
 Signature of a multicast request sent by a member. More...
 
#define GNUNET_SIGNATURE_PURPOSE_SENSOR_ANOMALY_REPORT   25
 Signature for a sensor anomaly report message. More...
 
#define GNUNET_SIGNATURE_PURPOSE_GNUID_TOKEN   26
 Signature for a GNUid Token. More...
 
#define GNUNET_SIGNATURE_PURPOSE_RECLAIM_CODE_SIGN   27
 Signature for a GNUid Ticket. More...
 
#define GNUNET_SIGNATURE_PURPOSE_DELEGATE   28
 Signature for a GNUnet credential. More...
 
#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_ADDRESS   29
 Signature by a peer affirming that this is one of its addresses (for the given time period). More...
 
#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_EPHEMERAL   30
 Signature by a peer affirming that the given ephemeral key is currently in use by that peer's transport service. More...
 
#define GNUNET_SIGNATURE_COMMUNICATOR_TCP_HANDSHAKE   31
 Signature used by TCP communicator handshake,. More...
 
#define GNUNET_SIGNATURE_COMMUNICATOR_TCP_REKEY   32
 Signature used by TCP communicator rekey. More...
 
#define GNUNET_SIGNATURE_COMMUNICATOR_UDP_HANDSHAKE   33
 Signature used by UDP communicator handshake. More...
 
#define GNUNET_SIGNATURE_COMMUNICATOR_UDP_BROADCAST   34
 Signature used by UDP broadcasts. More...
 
#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_CHALLENGE   35
 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). More...
 
#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DV_HOP   36
 Signature by a peer affirming that it is on a DV path. More...
 
#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DV_INITIATOR   37
 Signature by a peer affirming that it originated the DV path. More...
 

Detailed Description

Macro Definition Documentation

◆ GNUNET_SIGNATURE_PURPOSE_TEST

#define GNUNET_SIGNATURE_PURPOSE_TEST   0

Test signature, not valid for anything other than writing a test.

(Note that the signature verification code will accept this value).

Definition at line 47 of file gnunet_signatures.h.

◆ GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN

#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN   1

Signature for confirming that this peer uses a particular address.

Definition at line 52 of file gnunet_signatures.h.

Referenced by GST_validation_handle_ping(), and GST_validation_handle_pong().

◆ GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DISCONNECT

#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DISCONNECT   2

Signature for confirming that this peer intends to disconnect.

Definition at line 57 of file gnunet_signatures.h.

◆ GNUNET_SIGNATURE_PURPOSE_REVOCATION

#define GNUNET_SIGNATURE_PURPOSE_REVOCATION   3

Signature for confirming a key revocation.

Definition at line 62 of file gnunet_signatures.h.

Referenced by block_plugin_revocation_evaluate(), GNUNET_REVOCATION_revoke(), GNUNET_REVOCATION_sign_revocation(), and verify_revoke_message().

◆ GNUNET_SIGNATURE_PURPOSE_NAMESPACE_ADVERTISEMENT

#define GNUNET_SIGNATURE_PURPOSE_NAMESPACE_ADVERTISEMENT   4

Signature for a namespace/pseudonym advertisement (by the namespace owner).

Definition at line 68 of file gnunet_signatures.h.

◆ GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT

#define GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT   5

Signature by which a peer affirms that it is providing a certain bit of content (used in LOCation URIs).

Definition at line 75 of file gnunet_signatures.h.

Referenced by create_loc_uri(), GNUNET_FS_uri_loc_create(), handle_client_loc_sign(), and uri_loc_parse().

◆ GNUNET_SIGNATURE_PURPOSE_FS_KBLOCK

#define GNUNET_SIGNATURE_PURPOSE_FS_KBLOCK   6

Obsolete, legacy value.

Definition at line 80 of file gnunet_signatures.h.

◆ GNUNET_SIGNATURE_PURPOSE_FS_SBLOCK

#define GNUNET_SIGNATURE_PURPOSE_FS_SBLOCK   7

Obsolete, legacy value.

Definition at line 85 of file gnunet_signatures.h.

◆ GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK

#define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK   8

Obsolete, legacy value.

Definition at line 90 of file gnunet_signatures.h.

◆ GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK_KSIG

#define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK_KSIG   9

Obsolete, legacy value.

Definition at line 95 of file gnunet_signatures.h.

◆ GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE

#define GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE   10

Definition at line 100 of file gnunet_signatures.h.

◆ GNUNET_SIGNATURE_PURPOSE_DNS_RECORD

#define GNUNET_SIGNATURE_PURPOSE_DNS_RECORD   11

Signature of an GNUNET_DNS_Advertisement.

Definition at line 105 of file gnunet_signatures.h.

Referenced by advertise_dns_exit(), and block_plugin_dns_evaluate().

◆ GNUNET_SIGNATURE_PURPOSE_CHAT_MESSAGE

#define GNUNET_SIGNATURE_PURPOSE_CHAT_MESSAGE   12

Signature of a chat message.

Definition at line 110 of file gnunet_signatures.h.

◆ GNUNET_SIGNATURE_PURPOSE_CHAT_RECEIPT

#define GNUNET_SIGNATURE_PURPOSE_CHAT_RECEIPT   13

Signature of confirmation receipt for a chat message.

Definition at line 115 of file gnunet_signatures.h.

◆ GNUNET_SIGNATURE_PURPOSE_NSE_SEND

#define GNUNET_SIGNATURE_PURPOSE_NSE_SEND   14

Signature of a network size estimate message.

Definition at line 120 of file gnunet_signatures.h.

Referenced by setup_flood_message(), and verify_message_crypto().

◆ GNUNET_SIGNATURE_PURPOSE_GNS_RECORD_SIGN

#define GNUNET_SIGNATURE_PURPOSE_GNS_RECORD_SIGN   15

Signature of a gnunet naming system record block.

Definition at line 125 of file gnunet_signatures.h.

Referenced by block_create(), GNUNET_GNSRECORD_block_verify(), and handle_lookup_block_response().

◆ GNUNET_SIGNATURE_PURPOSE_SET_ECC_KEY

#define GNUNET_SIGNATURE_PURPOSE_SET_ECC_KEY   16

Purpose is to set a session key.

Definition at line 130 of file gnunet_signatures.h.

Referenced by handle_ephemeral_key(), and sign_ephemeral_key().

◆ GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK

#define GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK   17

UBlock Signature, done using DSS, not ECC.

Definition at line 135 of file gnunet_signatures.h.

Referenced by block_plugin_fs_evaluate(), and GNUNET_FS_publish_ublock_().

◆ GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT

#define GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT   18

Accept state in regex DFA.

Peer affirms that it offers the matching service.

Definition at line 141 of file gnunet_signatures.h.

Referenced by evaluate_block_regex_accept(), and regex_iterator().

◆ GNUNET_SIGNATURE_PURPOSE_MULTICAST_MESSAGE

#define GNUNET_SIGNATURE_PURPOSE_MULTICAST_MESSAGE   19

Signature of a multicast message sent by the origin.

Definition at line 146 of file gnunet_signatures.h.

◆ GNUNET_SIGNATURE_PURPOSE_CONVERSATION_RING

#define GNUNET_SIGNATURE_PURPOSE_CONVERSATION_RING   20

Signature of a conversation ring.

Definition at line 151 of file gnunet_signatures.h.

Referenced by handle_cadet_ring_message(), and handle_client_call_message().

◆ GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG1

#define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG1   21

Signature for the first round of distributed key generation.

Definition at line 156 of file gnunet_signatures.h.

Referenced by insert_round1_element(), and keygen_round1_new_element().

◆ GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG2

#define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG2   22

Signature for the second round of distributed key generation.

Definition at line 161 of file gnunet_signatures.h.

Referenced by insert_round2_element(), and keygen_round2_new_element().

◆ GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DECRYPTION

#define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DECRYPTION   23

Signature for cooperatice decryption.

Definition at line 166 of file gnunet_signatures.h.

Referenced by insert_decrypt_element().

◆ GNUNET_SIGNATURE_PURPOSE_MULTICAST_REQUEST

#define GNUNET_SIGNATURE_PURPOSE_MULTICAST_REQUEST   24

Signature of a multicast request sent by a member.

Definition at line 171 of file gnunet_signatures.h.

◆ GNUNET_SIGNATURE_PURPOSE_SENSOR_ANOMALY_REPORT

#define GNUNET_SIGNATURE_PURPOSE_SENSOR_ANOMALY_REPORT   25

Signature for a sensor anomaly report message.

Definition at line 176 of file gnunet_signatures.h.

◆ GNUNET_SIGNATURE_PURPOSE_GNUID_TOKEN

#define GNUNET_SIGNATURE_PURPOSE_GNUID_TOKEN   26

Signature for a GNUid Token.

Definition at line 181 of file gnunet_signatures.h.

◆ GNUNET_SIGNATURE_PURPOSE_RECLAIM_CODE_SIGN

#define GNUNET_SIGNATURE_PURPOSE_RECLAIM_CODE_SIGN   27

Signature for a GNUid Ticket.

Definition at line 186 of file gnunet_signatures.h.

Referenced by OIDC_build_authz_code(), and OIDC_parse_authz_code().

◆ GNUNET_SIGNATURE_PURPOSE_DELEGATE

#define GNUNET_SIGNATURE_PURPOSE_DELEGATE   28

◆ GNUNET_SIGNATURE_PURPOSE_TRANSPORT_ADDRESS

#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_ADDRESS   29

Signature by a peer affirming that this is one of its addresses (for the given time period).

Definition at line 197 of file gnunet_signatures.h.

Referenced by GNUNET_HELLO_extract_address(), and GNUNET_HELLO_sign_address().

◆ GNUNET_SIGNATURE_PURPOSE_TRANSPORT_EPHEMERAL

#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_EPHEMERAL   30

Signature by a peer affirming that the given ephemeral key is currently in use by that peer's transport service.

Definition at line 203 of file gnunet_signatures.h.

Referenced by handle_dv_box(), and update_ephemeral().

◆ GNUNET_SIGNATURE_COMMUNICATOR_TCP_HANDSHAKE

#define GNUNET_SIGNATURE_COMMUNICATOR_TCP_HANDSHAKE   31

Signature used by TCP communicator handshake,.

Definition at line 208 of file gnunet_signatures.h.

Referenced by decrypt_and_check_tc(), and transmit_kx().

◆ GNUNET_SIGNATURE_COMMUNICATOR_TCP_REKEY

#define GNUNET_SIGNATURE_COMMUNICATOR_TCP_REKEY   32

Signature used by TCP communicator rekey.

Definition at line 213 of file gnunet_signatures.h.

Referenced by do_rekey(), and inject_rekey().

◆ GNUNET_SIGNATURE_COMMUNICATOR_UDP_HANDSHAKE

#define GNUNET_SIGNATURE_COMMUNICATOR_UDP_HANDSHAKE   33

Signature used by UDP communicator handshake.

Definition at line 218 of file gnunet_signatures.h.

Referenced by mq_send(), and verify_confirmation().

◆ GNUNET_SIGNATURE_COMMUNICATOR_UDP_BROADCAST

#define GNUNET_SIGNATURE_COMMUNICATOR_UDP_BROADCAST   34

Signature used by UDP broadcasts.

Definition at line 223 of file gnunet_signatures.h.

Referenced by iface_proc(), and sock_read().

◆ GNUNET_SIGNATURE_PURPOSE_TRANSPORT_CHALLENGE

#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_CHALLENGE   35

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).

Definition at line 231 of file gnunet_signatures.h.

Referenced by handle_validation_challenge(), and handle_validation_response().

◆ GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DV_HOP

#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DV_HOP   36

Signature by a peer affirming that it is on a DV path.

Definition at line 236 of file gnunet_signatures.h.

Referenced by forward_dv_learn(), and handle_dv_learn().

◆ GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DV_INITIATOR

#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DV_INITIATOR   37

Signature by a peer affirming that it originated the DV path.

Definition at line 242 of file gnunet_signatures.h.

Referenced by start_dv_learn(), and validate_dv_initiator_signature().