diff options
Diffstat (limited to 'core/net_crypto.h')
-rw-r--r-- | core/net_crypto.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/net_crypto.h b/core/net_crypto.h index 2476db10..df2cb9ca 100644 --- a/core/net_crypto.h +++ b/core/net_crypto.h | |||
@@ -118,6 +118,14 @@ int is_cryptoconnected(int crypt_connection_id); | |||
118 | //Only call this function the first time the program starts. | 118 | //Only call this function the first time the program starts. |
119 | void new_keys(); | 119 | void new_keys(); |
120 | 120 | ||
121 | //save the public and private keys to the keys array | ||
122 | //Length must be crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES | ||
123 | void save_keys(uint8_t * keys); | ||
124 | |||
125 | //load the public and private keys from the keys array | ||
126 | //Length must be crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES | ||
127 | void load_keys(uint8_t * keys); | ||
128 | |||
121 | //run this to (re)initialize net_crypto | 129 | //run this to (re)initialize net_crypto |
122 | //sets all the global connection variables to their default values. | 130 | //sets all the global connection variables to their default values. |
123 | void initNetCrypto(); | 131 | void initNetCrypto(); |