summaryrefslogtreecommitdiff
path: root/toxcore/net_crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/net_crypto.h')
-rw-r--r--toxcore/net_crypto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h
index e5dfcae0..55c1e3e3 100644
--- a/toxcore/net_crypto.h
+++ b/toxcore/net_crypto.h
@@ -115,6 +115,9 @@ int decrypt_data_fast(uint8_t *enc_key, uint8_t *nonce,
115/* Fill the given nonce with random bytes. */ 115/* Fill the given nonce with random bytes. */
116void random_nonce(uint8_t *nonce); 116void random_nonce(uint8_t *nonce);
117 117
118/*Gives a nonce guaranteed to be different from previous ones.*/
119void new_nonce(uint8_t *nonce);
120
118/* return 0 if there is no received data in the buffer. 121/* return 0 if there is no received data in the buffer.
119 * return -1 if the packet was discarded. 122 * return -1 if the packet was discarded.
120 * return length of received data if successful. 123 * return length of received data if successful.