From 836d3ec44a3f3b221113b903d40ad3c32821462e Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 23 Feb 2024 11:55:29 +0100 Subject: [PATCH] implemented WHY2_CHAT_KEY_BASE macro --- src/chat/crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chat/crypto.c b/src/chat/crypto.c index bbe0266..dc22c39 100644 --- a/src/chat/crypto.c +++ b/src/chat/crypto.c @@ -102,8 +102,8 @@ void why2_chat_generate_keys(void) FILE *public = fopen(public_path, "w+"); FILE *private = fopen(private_path, "w+"); - mpz_out_str(public, 16, n); - mpz_out_str(private, 16, d); + mpz_out_str(public, WHY2_CHAT_KEY_BASE, n); + mpz_out_str(private, WHY2_CHAT_KEY_BASE, d); //KEYGEN DEALLOCATION mpz_clears(p, q, e, d, n, phi_n, buffer_1, buffer_2, NULL);