diff options
author | irungentoo <irungentoo@gmail.com> | 2014-05-17 09:21:07 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-05-17 09:21:07 -0400 |
commit | 454cadb91c57eb689eddbf41d61d66af54aa1e0f (patch) | |
tree | b3cd1a7b1c444485095d1d33823f617d800161d0 /docs | |
parent | 86c191c2d4d4721f93067565b078b9d691a61c00 (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.txt | 4 |
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: | |||
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)][uint64_t number (must be sent | 44 | bytes)][padding (32 bytes)][uint64_t number (must be sent |
45 | back untouched in cookie response)]] | 45 | back untouched in cookie response)]] |
46 | Encrypted message is encrypted with sender DHT private key, recievers DHT | 46 | Encrypted message is encrypted with sender DHT private key, recievers DHT |
47 | public key and the nonce. | 47 | public key and the nonce. |
@@ -54,7 +54,7 @@ public key and the nonce. | |||
54 | 54 | ||
55 | The Cookie should be basically: | 55 | The 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 |
57 | bytes)][Recievers real public key (32 bytes)]] | 57 | bytes)][Senders dht public key (32 bytes)]] |
58 | 58 | ||
59 | Handshake packet: | 59 | Handshake 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 |