Tor 0.4.9.0-alpha-dev
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 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)
 

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

◆ generate_ed_link_cert

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

Definition at line 81 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 68 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 62 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 66 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 78 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 72 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 70 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 64 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 121 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 117 of file routerkeys.h.

◆ relay_key_is_unavailable

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

Definition at line 58 of file routerkeys.h.

◆ router_ed25519_id_is_me

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

Definition at line 50 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 83 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 88 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 102 of file routerkeys.h.

◆ relay_key_is_unavailable_()

static void * relay_key_is_unavailable_ ( void  )
inlinestatic

Definition at line 54 of file routerkeys.h.