summaryrefslogtreecommitdiff
path: root/toxcore/net_crypto.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-10-22 13:29:45 -0700
committerirungentoo <irungentoo@gmail.com>2013-10-22 13:29:45 -0700
commitb515eac0a3bec4d111e759922fd206236b56b4b1 (patch)
tree0af2bb69cf1940c3b98b8c8b06b4c50b61981e4b /toxcore/net_crypto.c
parente9d92606d94837ac24e2583cdfd8d313a0fd9338 (diff)
parentf581e20233d2f67a1b0afc974900e258113bb230 (diff)
Merge pull request #630 from Bahkuh/master
Minor improvements
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r--toxcore/net_crypto.c4
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)
152static uint8_t base_nonce[crypto_box_NONCEBYTES]; 152static uint8_t base_nonce[crypto_box_NONCEBYTES];
153static uint8_t nonce_set = 0; 153static 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.*/
156void new_nonce(uint8_t *nonce) 156void 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.