diff --git a/include/chat/crypto.h b/include/chat/crypto.h index 5097093..50d627b 100644 --- a/include/chat/crypto.h +++ b/include/chat/crypto.h @@ -35,7 +35,7 @@ extern "C" { #define WHY2_CHAT_PRI_KEY "pri" #define WHY2_CHAT_KEY_BASE 62 //BASE IN THE GENERATED KEYS ARE STORED IN WHY2_CHAT_KEY_LOCATION -void why2_chat_generate_keys(void); //GENERATE RSA KEYS +void why2_chat_init_keys(void); //INIT (POSSIBLY GENERATE) RSA KEYS #ifdef __cplusplus } diff --git a/src/chat/crypto.c b/src/chat/crypto.c index 8e37445..192363e 100644 --- a/src/chat/crypto.c +++ b/src/chat/crypto.c @@ -53,7 +53,7 @@ void generate_prime(mpz_t x) } //GLOBAL -void why2_chat_generate_keys(void) +void why2_chat_init_keys(void) { //GET PATH TO KEY DIR char *path = why2_replace(WHY2_CHAT_KEY_LOCATION, "{USER}", getenv("USER")); diff --git a/src/chat/main/client.c b/src/chat/main/client.c index d47b034..5791ef3 100644 --- a/src/chat/main/client.c +++ b/src/chat/main/client.c @@ -36,7 +36,7 @@ along with this program. If not, see . int main(void) { why2_chat_init_client_config(); //CREATE client.toml CONFIGURATION - why2_chat_generate_keys(); //CREATE RSA KEYS + why2_chat_init_keys(); //CREATE RSA KEYS int listen_socket = socket(AF_INET, SOCK_STREAM, 0); //CREATE SERVER SOCKET char *line = NULL;