diff options
author | irungentoo <irungentoo@gmail.com> | 2014-04-30 09:24:05 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-04-30 09:24:05 -0400 |
commit | 0505df009bc01ef7db6e31ee6ea999aaa83b8bfc (patch) | |
tree | 89eb7829e54bc14cc0c184e063c7d3c795445c6b /docs | |
parent | 3863e01e2207198c20bf278c107f24a8cfbf1a73 (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.txt | 6 |
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: | |||
41 | cookie request packet: | 41 | cookie 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 |
43 | bytes)][Encrypted message containing: [Senders real public key (32 | 43 | bytes)][Encrypted message containing: [Senders real public key (32 |
44 | bytes)][Recievers real public key (32 bytes)]] | 44 | bytes)][Recievers real public key (32 bytes)][uint64_t number (must be sent back |
45 | untouched in cookie response)]] | ||
45 | Encrypted message is encrypted with sender DHT private key, recievers DHT | 46 | Encrypted message is encrypted with sender DHT private key, recievers DHT |
46 | public key and the nonce. | 47 | public key and the nonce. |
47 | 48 | ||
48 | cookie response packet: | 49 | cookie 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)]] | ||
50 | Encrypted message is encrypted with sender DHT private key, recievers DHT | 52 | Encrypted message is encrypted with sender DHT private key, recievers DHT |
51 | public key and the nonce. | 53 | public key and the nonce. |
52 | 54 | ||