summaryrefslogtreecommitdiff
path: root/docs/Tox_middle_level_network_protocol.txt
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-05-01 19:20:28 -0400
committerirungentoo <irungentoo@gmail.com>2014-05-01 19:20:28 -0400
commit47aa53a3840f81b42e0f78dea03a57ebd7c3ebb5 (patch)
treef5c00a5ab3269b00e3d111bf136850f3f4ea5e60 /docs/Tox_middle_level_network_protocol.txt
parent19a4b1e443f015e38d04decbe8e042acb17d8ae8 (diff)
Protocol implementation is starting to look ok.
Still need to decide exactly how data packets will work though.
Diffstat (limited to 'docs/Tox_middle_level_network_protocol.txt')
-rw-r--r--docs/Tox_middle_level_network_protocol.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/Tox_middle_level_network_protocol.txt b/docs/Tox_middle_level_network_protocol.txt
index 0382dd4e..7b65db51 100644
--- a/docs/Tox_middle_level_network_protocol.txt
+++ b/docs/Tox_middle_level_network_protocol.txt
@@ -85,3 +85,12 @@ Both then use these temporary keys to generate the session key with which every
85data packet sent and received will be encrypted and decrypted. The nonce sent 85data packet sent and received will be encrypted and decrypted. The nonce sent
86in the handshake will be used to encrypt the first data packet sent, the nonce 86in the handshake will be used to encrypt the first data packet sent, the nonce
87+ 1 the second, the nonce + 2 the third and so on. 87+ 1 the second, the nonce + 2 the third and so on.
88
89Data packets:
90
91[uint8_t 27][uint16_t (in network byte order) the last 2 bytes of the nonce used
92to encrypt this][encrypted with the session key and a nonce:[data]]
93
94Data in the data packets:
95...
96