Tor 0.4.9.2-alpha-dev
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Macros | Functions
routerkeys.h File Reference

Header for routerkeys.c. More...

#include "lib/crypt_ops/crypto_ed25519.h"

Go to the source code of this file.

Macros

#define router_ed25519_id_is_me(id)    ((void)(id), 0)
 
#define relay_key_is_unavailable(type)    ((type)(relay_key_is_unavailable_()))
 
#define get_current_auth_keypair()    relay_key_is_unavailable(const ed25519_keypair_t *)
 
#define get_master_signing_keypair()    relay_key_is_unavailable(const ed25519_keypair_t *)
 
#define get_current_link_cert_cert()    relay_key_is_unavailable(const struct tor_cert_st *)
 
#define get_current_auth_key_cert()    relay_key_is_unavailable(const struct tor_cert_st *)
 
#define get_master_signing_key_cert()    relay_key_is_unavailable(const struct tor_cert_st *)
 
#define get_master_rsa_crosscert(cert_out, size_out)
 
#define get_master_identity_key()    relay_key_is_unavailable(const ed25519_public_key_t *)
 
#define generate_ed_link_cert(options, now, force)    ((void)(options), (void)(now), (void)(force), 0)
 
#define should_make_new_ed_keys(options, now)    ((void)(options), (void)(now), 0)
 
#define warn_about_family_id_config(options, ns)    ((void)(options), (void)(ns))
 
#define get_current_family_id_keys()    (smartlist_new())
 
#define log_cert_expiration()    (puts("Not available: Tor has been compiled without relay support"), 0)
 
#define load_ed_keys(x, y)    (puts("Not available: Tor has been compiled without relay support"), 0)
 
#define load_family_id_keys(x, y)    (puts("Not available: Tor has been compiled without relay support"), 0)
 
#define create_family_id_key(x, y)    (puts("Not available: Tor has been compiled without relay support"), -1)
 

Functions

static void * relay_key_is_unavailable_ (void)
 
static struct tor_cert_st * make_ntor_onion_key_crosscert (const curve25519_keypair_t *onion_key, const ed25519_public_key_t *master_id_key, time_t now, time_t lifetime, int *sign_out)
 
static uint8_t * make_tap_onion_key_crosscert (const crypto_pk_t *onion_key, const ed25519_public_key_t *master_id_key, const crypto_pk_t *rsa_id_key, int *len_out)
 

Detailed Description

Header for routerkeys.c.

Definition in file routerkeys.h.

Macro Definition Documentation

◆ create_family_id_key

#define create_family_id_key (   x,
 
)     (puts("Not available: Tor has been compiled without relay support"), -1)

Definition at line 138 of file routerkeys.h.

◆ generate_ed_link_cert

#define generate_ed_link_cert (   options,
  now,
  force 
)     ((void)(options), (void)(now), (void)(force), 0)

Definition at line 90 of file routerkeys.h.

◆ get_current_auth_key_cert

#define get_current_auth_key_cert (   void)     relay_key_is_unavailable(const struct tor_cert_st *)

Definition at line 77 of file routerkeys.h.

◆ get_current_auth_keypair

#define get_current_auth_keypair (   void)     relay_key_is_unavailable(const ed25519_keypair_t *)

Definition at line 71 of file routerkeys.h.

◆ get_current_family_id_keys

#define get_current_family_id_keys (   void)     (smartlist_new())

Definition at line 96 of file routerkeys.h.

◆ get_current_link_cert_cert

#define get_current_link_cert_cert (   void)     relay_key_is_unavailable(const struct tor_cert_st *)

Definition at line 75 of file routerkeys.h.

◆ get_master_identity_key

#define get_master_identity_key (   void)     relay_key_is_unavailable(const ed25519_public_key_t *)

Definition at line 87 of file routerkeys.h.

◆ get_master_rsa_crosscert

#define get_master_rsa_crosscert (   cert_out,
  size_out 
)
Value:
*(cert_out) = NULL; \
*(size_out) = 0; \
STMT_END
#define tor_assert_nonfatal_unreached()
Definition: util_bug.h:177

Definition at line 81 of file routerkeys.h.

◆ get_master_signing_key_cert

#define get_master_signing_key_cert (   void)     relay_key_is_unavailable(const struct tor_cert_st *)

Definition at line 79 of file routerkeys.h.

◆ get_master_signing_keypair

#define get_master_signing_keypair (   void)     relay_key_is_unavailable(const ed25519_keypair_t *)

Definition at line 73 of file routerkeys.h.

◆ load_ed_keys

#define load_ed_keys (   x,
 
)     (puts("Not available: Tor has been compiled without relay support"), 0)

Definition at line 134 of file routerkeys.h.

◆ load_family_id_keys

#define load_family_id_keys (   x,
 
)     (puts("Not available: Tor has been compiled without relay support"), 0)

Definition at line 136 of file routerkeys.h.

◆ log_cert_expiration

#define log_cert_expiration (   void)     (puts("Not available: Tor has been compiled without relay support"), 0)

Definition at line 130 of file routerkeys.h.

◆ relay_key_is_unavailable

#define relay_key_is_unavailable (   type)     ((type)(relay_key_is_unavailable_()))

Definition at line 67 of file routerkeys.h.

◆ router_ed25519_id_is_me

#define router_ed25519_id_is_me (   id)     ((void)(id), 0)

Definition at line 59 of file routerkeys.h.

◆ should_make_new_ed_keys

#define should_make_new_ed_keys (   options,
  now 
)     ((void)(options), (void)(now), 0)

Definition at line 92 of file routerkeys.h.

◆ warn_about_family_id_config

#define warn_about_family_id_config (   options,
  ns 
)     ((void)(options), (void)(ns))

Definition at line 94 of file routerkeys.h.

Function Documentation

◆ make_ntor_onion_key_crosscert()

static struct tor_cert_st * make_ntor_onion_key_crosscert ( const curve25519_keypair_t onion_key,
const ed25519_public_key_t master_id_key,
time_t  now,
time_t  lifetime,
int *  sign_out 
)
inlinestatic

Definition at line 101 of file routerkeys.h.

◆ make_tap_onion_key_crosscert()

static uint8_t * make_tap_onion_key_crosscert ( const crypto_pk_t onion_key,
const ed25519_public_key_t master_id_key,
const crypto_pk_t rsa_id_key,
int *  len_out 
)
inlinestatic

Definition at line 115 of file routerkeys.h.

◆ relay_key_is_unavailable_()

static void * relay_key_is_unavailable_ ( void  )
inlinestatic

Definition at line 63 of file routerkeys.h.