summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-04-30 09:24:05 -0400
committerirungentoo <irungentoo@gmail.com>2014-04-30 09:24:05 -0400
commit0505df009bc01ef7db6e31ee6ea999aaa83b8bfc (patch)
tree89eb7829e54bc14cc0c184e063c7d3c795445c6b /docs
parent3863e01e2207198c20bf278c107f24a8cfbf1a73 (diff)
Added number to cookie request/response packets to prevent possible
DoS issue.
Diffstat (limited to 'docs')
-rw-r--r--docs/Tox_middle_level_network_protocol.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/Tox_middle_level_network_protocol.txt b/docs/Tox_middle_level_network_protocol.txt
index 39b275d2..0382dd4e 100644
--- a/docs/Tox_middle_level_network_protocol.txt
+++ b/docs/Tox_middle_level_network_protocol.txt
@@ -41,12 +41,14 @@ 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)]] 44bytes)][Recievers real public key (32 bytes)][uint64_t number (must be sent back
45untouched in cookie response)]]
45Encrypted message is encrypted with sender DHT private key, recievers DHT 46Encrypted message is encrypted with sender DHT private key, recievers DHT
46public key and the nonce. 47public key and the nonce.
47 48
48cookie response packet: 49cookie response packet:
49[uint8_t 25][Random nonce (24 bytes)][Encrypted message containing: [Cookie]] 50[uint8_t 25][Random nonce (24 bytes)][Encrypted message containing:
51[Cookie][uint64_t number (that was sent in the request)]]
50Encrypted message is encrypted with sender DHT private key, recievers DHT 52Encrypted message is encrypted with sender DHT private key, recievers DHT
51public key and the nonce. 53public key and the nonce.
52 54