summaryrefslogtreecommitdiff
path: root/docs/Hardening_docs.txt
diff options
context:
space:
mode:
authorirungentoo <irungentoo@tox.im>2014-03-04 12:45:49 -0500
committerirungentoo <irungentoo@tox.im>2014-03-04 12:45:49 -0500
commit81f748e4f8940ec0783b007136059ace4fecc937 (patch)
tree435ff4475844fa20bc8796ce6d106c305115e0d8 /docs/Hardening_docs.txt
parent602c71bc17d4c23f6d0968aa09b9b058bff57862 (diff)
parent1cb38abf999b5bc0b0eddad43760c31580dc2d48 (diff)
Merge pull request #782 from AgathaTheWitch/master
Minor documentation cleanup
Diffstat (limited to 'docs/Hardening_docs.txt')
-rw-r--r--docs/Hardening_docs.txt25
1 files changed, 17 insertions, 8 deletions
diff --git a/docs/Hardening_docs.txt b/docs/Hardening_docs.txt
index c5de6ade..53a61034 100644
--- a/docs/Hardening_docs.txt
+++ b/docs/Hardening_docs.txt
@@ -1,21 +1,30 @@
1Hardening request packets are sent as crypto request packets (see crypto docs.) 1Hardening request packets are sent as crypto request packets (see crypto docs.)
2NOTE: currently only get nodes requests are tested in the code which is why there is only one test (more will be added soon.) 2NOTE: currently only get nodes requests are tested in the code which is why
3there is only one test (more will be added soon.)
3 4
4All hardening requests must contain exactly 768 bytes of data. (The data sent must be padded with zeros if it is smaller than that.) 5All hardening requests must contain exactly 768 bytes of data. (The data sent
6must be padded with zeros if it is smaller than that.)
5 7
61. Get the information (IP_port, client_id) of the node we want to test. 81. Get the information (IP_port, client_id) of the node we want to test.
72. Find a couple random nodes that is not that node (one for each test.) 92. Find a couple random nodes that is not that node (one for each test.)
83. Send crypto request packets to each of these random nodes with the data being: 103. Send crypto request packets to each of these random nodes with the data being:
9 11
10[byte with value: 02 (get nodes test request)][struct Node_format (the node to test.)][client_id(32 bytes) the id to query the node with.][padding] 12[byte with value: 02 (get nodes test request)][struct Node_format (the node to
13test.)][client_id(32 bytes) the id to query the node with.][padding]
11 14
124. The random node receives a packet. 154. The random node receives a packet.
13-The packet is a get nodes test request: 16-The packet is a get nodes test request:
14 send a get_node request to that node with the id to query in the request. 17 send a get_node request to that node with the id to query in the request.
15 when a send_node response is received, send the following response to the person who sent us the get nodes test request packet: 18 when a send_node response is received, send the following response to the
16 [byte with value: 03 (get nodes test response)][client_id(32 bytes): the id of the tested node][The list of nodes it responded with in IPv6 Node format (struct Node_Format)] 19 person who sent us the get nodes test request packet:
17 PROTIP: (get node requests and response contain an encrypted part that you can use to store information so that you don't 20 [byte with value: 03 (get nodes test response)][client_id(32 bytes):
18 have to store in your memory where/if to send back the response from the send node) 21 the id of the tested node][The list of nodes it responded with in IPv6
22 Node format (struct Node_Format)]
23 PROTIP: (get node requests and response contain an encrypted part that you
24 can use to store information so that you don't
25 have to store in your memory where/if to send back the response from the
26 send node)
19 27
205. Receive the test responses. 285. Receive the test responses.
21-If the test(s) pass (the nodes behave in a satisfactory manner), make these nodes have priority over those who don't pass the test(s). 29-If the test(s) pass (the nodes behave in a satisfactory manner), make these
30nodes have priority over those who don't pass the test(s).