summaryrefslogtreecommitdiff
path: root/docs/Crypto.txt
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-02 18:39:13 -0400
committerirungentoo <irungentoo@gmail.com>2013-07-02 18:39:13 -0400
commit5591d44632f5ddb088e2405756c0e219915ceda4 (patch)
tree007feb322356816d8dc7b3e2da31eb8ebb2a8782 /docs/Crypto.txt
parente1acd327ed31be920286b1b8c2a9a38f13f87cae (diff)
Fixed typos.
Diffstat (limited to 'docs/Crypto.txt')
-rw-r--r--docs/Crypto.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/Crypto.txt b/docs/Crypto.txt
index 97e39560..95d343d5 100644
--- a/docs/Crypto.txt
+++ b/docs/Crypto.txt
@@ -17,10 +17,10 @@ Adding a friend:
17 17
18 case 1: 18 case 1:
19 Alice connects to Bob and sends a data packet (friends request) like so: 19 Alice connects to Bob and sends a data packet (friends request) like so:
20 [char with a value of 01][Alice's Public key (client_id) (32 bits)][Random nonce (24 bits)][Encrypted message] 20 [char with a value of 01][Alice's Public key (client_id) (32 bytes)][Random nonce (24 bytes)][Encrypted message]
21 21
22 Where the encrypted message is encrypted with crypto_box() (using Bobs public key, Alice's private key 22 Where the encrypted message is encrypted with crypto_box() (using Bobs public key, Alice's private key
23 and the nonce (randomly generated 24bits)) and is a message from Alice in which she tells Bob who she is. 23 and the nonce (randomly generated 24 bytes)) and is a message from Alice in which she tells Bob who she is.
24 Ex: hello bob it's me alice -_- add me pl0x. 24 Ex: hello bob it's me alice -_- add me pl0x.
25 25
26 Bob receives the request and decrypts the message using the function crypto_box_open() 26 Bob receives the request and decrypts the message using the function crypto_box_open()
@@ -42,7 +42,7 @@ Connecting to an already added friend:
42 Alice and Bob are friends. 42 Alice and Bob are friends.
43 As soon as they connect they each send themselves the following packet (encrypted part encrypted with the public nonce in the packet 43 As soon as they connect they each send themselves the following packet (encrypted part encrypted with the public nonce in the packet
44 the public key of the receiver and private key of the sender) 44 the public key of the receiver and private key of the sender)
45 [char with a value of 02][Random nonce (24 bits)][Encrypted message containing a random 24 bit base nonce] 45 [char with a value of 02][Random nonce (24 bytes)][Encrypted message containing a random 24 bytes base nonce]
46 If the packet is decrypted successfully: 46 If the packet is decrypted successfully:
47 Each start using the secret nonce provided by the other to encrypt data packets (adding to it + 1 for each packet.) 47 Each start using the secret nonce provided by the other to encrypt data packets (adding to it + 1 for each packet.)
48 Data packet: 48 Data packet: