Skip to content
Snippets Groups Projects
Commit bbf5cd12 authored by ClémentBourges's avatar ClémentBourges
Browse files

Fonction au bon endroit

parent 60a7b552
Branches master
No related tags found
No related merge requests found
......@@ -374,18 +374,19 @@ int main()
//********************* Step 4 : Calculate unique d such that ed = 1(mod x)**************************
//***************************************************Utilisation de GMP
Inverse_modulaire(d, e, x);
/*
mpz_invert(d, e, x);
char d_str[1000];
mpz_get_str(d_str,10,d);
std::cout << "\t d = " << d_str << std::endl << std::endl;
*/
//***************************utilisation de nos propres fonctions
//ici il faut appeler la fonction d'euclide etendu
Inverse_modulaire(d, e, x);
char d_str[1000];
mpz_get_str(d_str,10,d);
std::cout << "\t d = " << d_str << std::endl << std::endl;
//******************** * Step 5 : Print the public and private key pairs...******************************
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment