diff --git a/include/chat/crypto.h b/include/chat/crypto.h index 5bc79a2..bd6f9db 100644 --- a/include/chat/crypto.h +++ b/include/chat/crypto.h @@ -28,7 +28,7 @@ extern "C" { //MACROS #define WHY2_CHAT_KEY_BITS 4096 //BITS.. #define WHY2_CHAT_PRIME_ITERS 100 //NUMBER OF ITERATIONS WHEN CHECKING PRIME NUMBER -#define WHY2_CHAT_RSA_EXPONENT 65537 //DEFAULT e +#define WHY2_CHAT_RSA_EXPONENT "65537" //DEFAULT e #define WHY2_CHAT_KEY_LOCATION WHY2_CHAT_CONFIG_DIR "/keys" //KEYS LOCATION #define WHY2_CHAT_PUB_KEY "pub" diff --git a/src/chat/crypto.c b/src/chat/crypto.c index 8267c50..c7f4b7d 100644 --- a/src/chat/crypto.c +++ b/src/chat/crypto.c @@ -111,7 +111,7 @@ void why2_chat_init_keys(void) generate_prime(q); //SET e - mpz_set_ui(e, WHY2_CHAT_RSA_EXPONENT); + mpz_set_str(e, WHY2_CHAT_RSA_EXPONENT, 10); //GET n mpz_mul(n, p, q);