summaryrefslogtreecommitdiff
path: root/toxcore/net_crypto.c
diff options
context:
space:
mode:
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.