implemented WHY2_CHAT_KEY_BASE macro

This commit is contained in:
Václav Šmejkal 2024-02-23 11:55:29 +01:00
parent 09a326a067
commit 836d3ec44a
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -102,8 +102,8 @@ void why2_chat_generate_keys(void)
FILE *public = fopen(public_path, "w+"); FILE *public = fopen(public_path, "w+");
FILE *private = fopen(private_path, "w+"); FILE *private = fopen(private_path, "w+");
mpz_out_str(public, 16, n); mpz_out_str(public, WHY2_CHAT_KEY_BASE, n);
mpz_out_str(private, 16, d); mpz_out_str(private, WHY2_CHAT_KEY_BASE, d);
//KEYGEN DEALLOCATION //KEYGEN DEALLOCATION
mpz_clears(p, q, e, d, n, phi_n, buffer_1, buffer_2, NULL); mpz_clears(p, q, e, d, n, phi_n, buffer_1, buffer_2, NULL);