diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-05-05 04:27:00 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-05-05 04:27:00 +0000 |
commit | 44b4efe34d4f6bd6a39703c065a075cb9ddb4656 (patch) | |
tree | b857e862584d8959aee01234f01abcdc69400e63 /src/or/or.h | |
parent | 96759a609e65edf0ba48471242a94b63023fba3c (diff) | |
download | tor-44b4efe34d4f6bd6a39703c065a075cb9ddb4656.tar.gz tor-44b4efe34d4f6bd6a39703c065a075cb9ddb4656.zip |
Tests, headers, and debugging for onion skin backend
svn:r263
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 3dab7ad9f1..b2079af31a 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -793,6 +793,21 @@ void init_tracked_tree(void); void onion_pack(char *dest, onion_layer_t *src); void onion_unpack(onion_layer_t *dest, char *src); +int onion_skin_create(crypto_pk_env_t *router_key, + crypto_dh_env_t **handshake_state_out, + char *onion_skin_out); /* Must be 208 bytes long */ + +int onion_skin_server_handshake(char *onion_skin, /* 208 bytes long */ + crypto_pk_env_t *private_key, + char *handshake_reply_out, /* 192 bytes long */ + char *key_out, + int key_out_len); + +int onion_skin_client_handshake(crypto_dh_env_t *handshake_state, + char *handshake_reply,/* Must be 192 bytes long*/ + char *key_out, + int key_out_len); + /********************************* routers.c ***************************/ int learn_my_address(struct sockaddr_in *me); |