helper library for handling URI-based HELLOs More...
#include "platform.h"
#include "gnunet_signatures.h"
#include "gnunet_hello_uri_lib.h"
#include "gnunet_protocols.h"
#include "gnunet_util_lib.h"
Go to the source code of this file.
Data Structures | |
struct | HelloSignaturePurpose |
Message signed as part of a HELLO block/URL. More... | |
struct | HelloUriMessage |
Message used when gossiping HELLOs between peers. More... | |
struct | BlockHeader |
Start of a 'block'. More... | |
struct | DhtHelloMessage |
Message used when a DHT provides its HELLO to direct neighbours. More... | |
struct | Address |
Address of a peer. More... | |
struct | GNUNET_HELLO_Builder |
Context for building (or parsing) HELLO URIs. More... | |
helper library for handling URI-based HELLOs
Note:
Definition in file hello-uri.c.
|
static |
Compute hash over addresses in builder.
builder | the builder to hash addresses of | |
[out] | hash | where to write the hash |
Definition at line 215 of file hello-uri.c.
References builder, GNUNET_CRYPTO_hash_context_finish(), GNUNET_CRYPTO_hash_context_read(), GNUNET_CRYPTO_hash_context_start(), GNUNET_ERROR_TYPE_DEBUG, and GNUNET_log.
Referenced by sign_hello().
|
static |
Create HELLO signature.
builder | the builder to use | |
et | expiration time to sign | |
priv | key to sign with | |
[out] | sig | where to write the signature |
Definition at line 248 of file hello-uri.c.
References GNUNET_TIME_Timestamp::abs_time, builder, GNUNET_CRYPTO_eddsa_sign, GNUNET_ERROR_TYPE_DEBUG, GNUNET_h2s_full(), GNUNET_log, GNUNET_SIGNATURE_PURPOSE_HELLO, GNUNET_TIME_absolute_hton(), HelloSignaturePurpose::h_addrs, hash_addresses(), HelloSignaturePurpose::purpose, and GNUNET_CRYPTO_EccSignaturePurpose::size.
Referenced by GNUNET_HELLO_builder_add_address().
|
static |
Verify HELLO signature.
builder | the builder to use |
et | expiration time to verify |
sig | signature to verify |
Definition at line 248 of file hello-uri.c.
Referenced by GNUNET_HELLO_builder_from_block(), and GNUNET_HELLO_builder_from_url().