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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h
index c9e6d23a..56f43cc4 100644
--- a/toxcore/net_crypto.h
+++ b/toxcore/net_crypto.h
@@ -384,10 +384,10 @@ void new_keys(Net_Crypto *c);
384 */ 384 */
385void save_keys(const Net_Crypto *c, uint8_t *keys); 385void save_keys(const Net_Crypto *c, uint8_t *keys);
386 386
387/* Load the public and private keys from the keys array. 387/* Load the secret key.
388 * Length must be crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES. 388 * Length must be crypto_box_SECRETKEYBYTES.
389 */ 389 */
390void load_keys(Net_Crypto *c, const uint8_t *keys); 390void load_secret_key(Net_Crypto *c, const uint8_t *sk);
391 391
392/* Create new instance of Net_Crypto. 392/* Create new instance of Net_Crypto.
393 * Sets all the global connection variables to their default values. 393 * Sets all the global connection variables to their default values.