diff options
author | irungentoo <irungentoo@gmail.com> | 2013-10-22 13:29:45 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-10-22 13:29:45 -0700 |
commit | b515eac0a3bec4d111e759922fd206236b56b4b1 (patch) | |
tree | 0af2bb69cf1940c3b98b8c8b06b4c50b61981e4b /toxcore/net_crypto.c | |
parent | e9d92606d94837ac24e2583cdfd8d313a0fd9338 (diff) | |
parent | f581e20233d2f67a1b0afc974900e258113bb230 (diff) |
Merge pull request #630 from Bahkuh/master
Minor improvements
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. |