From 454cadb91c57eb689eddbf41d61d66af54aa1e0f Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sat, 17 May 2014 09:21:07 -0400 Subject: Changed cookie/cookie request packet. Cookie now contains the dht public key of the peer which makes more sense than including the real public key of the reciever. It means we no longer have to rely entirely on onion_client to find the dht public key of the other peer. --- docs/Tox_middle_level_network_protocol.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/Tox_middle_level_network_protocol.txt b/docs/Tox_middle_level_network_protocol.txt index 29ea131a..9941487b 100644 --- a/docs/Tox_middle_level_network_protocol.txt +++ b/docs/Tox_middle_level_network_protocol.txt @@ -41,7 +41,7 @@ Detailed implementation details: cookie request packet: [uint8_t 24][Senders DHT Public key (32 bytes)][Random nonce (24 bytes)][Encrypted message containing: [Senders real public key (32 -bytes)][Recievers real public key (32 bytes)][uint64_t number (must be sent +bytes)][padding (32 bytes)][uint64_t number (must be sent back untouched in cookie response)]] Encrypted message is encrypted with sender DHT private key, recievers DHT public key and the nonce. @@ -54,7 +54,7 @@ public key and the nonce. The Cookie should be basically: [nonce][encrypted data:[uint64_t time][Senders real public key (32 -bytes)][Recievers real public key (32 bytes)]] +bytes)][Senders dht public key (32 bytes)]] Handshake packet: [uint8_t 26][Cookie][nonce][Encrypted message containing: [random 24 bytes base -- cgit v1.2.3