diff --git a/src/lib/math_tools.hh b/src/lib/math_tools.hh index 1a74f1e..771ee7f 100644 --- a/src/lib/math_tools.hh +++ b/src/lib/math_tools.hh @@ -5,17 +5,18 @@ #include "cryptafinity_iface.hh" namespace LibCryptAfinity { + class MathTools { private: - std::vector MathTools::pgcd_real(int * reste, int * quotient, int * coef_first, int * coef_second, int pas); + std::vector pgcd_real(int * reste, int * quotient, int * coef_first, int * coef_second, int pas); public: int pgcd(int a, int b); int ppcm(int a, int b); - std::vector MathTools::pgcd_mod(int a, int b); + std::vector pgcd_mod(int a, int b); - int MathTools::inverse(int a, int modulo); + int inverse(int a, int modulo); }; }