From 2bb2bc4163a13253d51b7d11e4abbe62b07da526 Mon Sep 17 00:00:00 2001 From: cgar Date: Tue, 9 Sep 2014 20:31:37 -0400 Subject: spelling corrections --- docs/Prevent_Tracking.txt | 3 ++- docs/Tox_middle_level_network_protocol.txt | 16 ++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) (limited to 'docs') diff --git a/docs/Prevent_Tracking.txt b/docs/Prevent_Tracking.txt index 86402110..a641f02c 100644 --- a/docs/Prevent_Tracking.txt +++ b/docs/Prevent_Tracking.txt @@ -119,7 +119,8 @@ announce response packet: encrypted with the DHT private key of Node D, the public key in the request and the nonce:[[uint8_t is_stored] [(32 bytes) ping_id if is_stored is 0 or 2, public key that must be used to send data packets if is_stored is 1][Node_Format * (maximum of 8)]] (if the is_stored is not 0, it means the information to reach the client id we are searching for is stored on this node) -is_stored is 2 as a response to a peer trying to announce himself to tell the peer that he is currently annouced successfully. +is_stored is 2 as a response to a peer trying to announce himself to tell the +peer that he is currently announced successfully. data to route response packet: [uint8_t packet id (134)][nonce][temporary just generated public key] diff --git a/docs/Tox_middle_level_network_protocol.txt b/docs/Tox_middle_level_network_protocol.txt index ff894246..ca561474 100644 --- a/docs/Tox_middle_level_network_protocol.txt +++ b/docs/Tox_middle_level_network_protocol.txt @@ -43,13 +43,13 @@ cookie request packet: bytes)][Encrypted message containing: [Senders real public key (32 bytes)][padding (32 bytes)][uint64_t number (must be sent back untouched in cookie response)]] -Encrypted message is encrypted with sender DHT private key, recievers DHT +Encrypted message is encrypted with sender DHT private key, receivers DHT public key and the nonce. cookie response packet: [uint8_t 25][Random nonce (24 bytes)][Encrypted message containing: [Cookie][uint64_t number (that was sent in the request)]] -Encrypted message is encrypted with sender DHT private key, recievers DHT +Encrypted message is encrypted with sender DHT private key, receivers DHT public key and the nonce. The Cookie should be basically: @@ -110,11 +110,11 @@ packet request packet: [uint8_t (1)][uint8_t num][uint8_t num][uint8_t num]...[uint8_t num] the list of nums are a list of packet numbers the other is requesting. -to get the real packet numbers from this list take the recvbuffers buffer_start -from the packet, substract 1 to it and put it in packet_num then start from the -beggining of the num list: if num is zero, add 255 to packet_num then do the -next num. if num isn't zero, add its value to packet_num, note that the other -has requested we send this packet again to them then continue to the next num in -the list. +to get the real packet numbers from this list take the recvbuffers buffer_start +from the packet, subtract 1 to it and put it in packet_num then start from the +beginning of the num list: if num is zero, add 255 to packet_num then do the +next num. if num isn't zero, add its value to packet_num, note that the other +has requested we send this packet again to them then continue to the next num in +the list. -- cgit v1.2.3