diff options
Diffstat (limited to 'toxcore/net_crypto.h')
-rw-r--r-- | toxcore/net_crypto.h | 6 |
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 | */ |
385 | void save_keys(const Net_Crypto *c, uint8_t *keys); | 385 | void 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 | */ |
390 | void load_keys(Net_Crypto *c, const uint8_t *keys); | 390 | void 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. |