diff options
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 |