diff options
author | Bahkuh <philip_hq@hotmail.com> | 2013-10-21 08:00:27 +0200 |
---|---|---|
committer | Bahkuh <philip_hq@hotmail.com> | 2013-10-22 20:24:48 +0200 |
commit | f581e20233d2f67a1b0afc974900e258113bb230 (patch) | |
tree | 0af2bb69cf1940c3b98b8c8b06b4c50b61981e4b /toxcore/net_crypto.c | |
parent | e9d92606d94837ac24e2583cdfd8d313a0fd9338 (diff) |
This squash should work now.
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r-- | toxcore/net_crypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index b7e3ced7..14831868 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -152,7 +152,7 @@ void random_nonce(uint8_t *nonce) | |||
152 | static uint8_t base_nonce[crypto_box_NONCEBYTES]; | 152 | static uint8_t base_nonce[crypto_box_NONCEBYTES]; |
153 | static uint8_t nonce_set = 0; | 153 | static uint8_t nonce_set = 0; |
154 | 154 | ||
155 | /*Gives a nonce guaranteed to be different from previous ones.*/ | 155 | /* Gives a nonce guaranteed to be different from previous ones.*/ |
156 | void new_nonce(uint8_t *nonce) | 156 | void new_nonce(uint8_t *nonce) |
157 | { | 157 | { |
158 | if (nonce_set == 0) { | 158 | if (nonce_set == 0) { |
@@ -240,7 +240,7 @@ int write_cryptpacket(Net_Crypto *c, int crypt_connection_id, uint8_t *data, uin | |||
240 | return 1; | 240 | return 1; |
241 | } | 241 | } |
242 | 242 | ||
243 | /* Ceate a request to peer. | 243 | /* Create a request to peer. |
244 | * send_public_key and send_secret_key are the pub/secret keys of the sender. | 244 | * send_public_key and send_secret_key are the pub/secret keys of the sender. |
245 | * recv_public_key is public key of reciever. | 245 | * recv_public_key is public key of reciever. |
246 | * packet must be an array of MAX_DATA_SIZE big. | 246 | * packet must be an array of MAX_DATA_SIZE big. |