summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-05-17 09:21:07 -0400
committerirungentoo <irungentoo@gmail.com>2014-05-17 09:21:07 -0400
commit454cadb91c57eb689eddbf41d61d66af54aa1e0f (patch)
treeb3cd1a7b1c444485095d1d33823f617d800161d0 /docs
parent86c191c2d4d4721f93067565b078b9d691a61c00 (diff)
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.
Diffstat (limited to 'docs')
-rw-r--r--docs/Tox_middle_level_network_protocol.txt4
1 files changed, 2 insertions, 2 deletions
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:
41cookie request packet: 41cookie request packet:
42[uint8_t 24][Senders DHT Public key (32 bytes)][Random nonce (24 42[uint8_t 24][Senders DHT Public key (32 bytes)][Random nonce (24
43bytes)][Encrypted message containing: [Senders real public key (32 43bytes)][Encrypted message containing: [Senders real public key (32
44bytes)][Recievers real public key (32 bytes)][uint64_t number (must be sent 44bytes)][padding (32 bytes)][uint64_t number (must be sent
45back untouched in cookie response)]] 45back untouched in cookie response)]]
46Encrypted message is encrypted with sender DHT private key, recievers DHT 46Encrypted message is encrypted with sender DHT private key, recievers DHT
47public key and the nonce. 47public key and the nonce.
@@ -54,7 +54,7 @@ public key and the nonce.
54 54
55The Cookie should be basically: 55The Cookie should be basically:
56[nonce][encrypted data:[uint64_t time][Senders real public key (32 56[nonce][encrypted data:[uint64_t time][Senders real public key (32
57bytes)][Recievers real public key (32 bytes)]] 57bytes)][Senders dht public key (32 bytes)]]
58 58
59Handshake packet: 59Handshake packet:
60[uint8_t 26][Cookie][nonce][Encrypted message containing: [random 24 bytes base 60[uint8_t 26][Cookie][nonce][Encrypted message containing: [random 24 bytes base