Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Sep 2, 2024
1 parent 1c98cc5 commit b6c3307
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/mont.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ class Montgomery {

void toMont(mpz_class& x) const { toMont(x, x); }
void fromMont(mpz_class& x) const { fromMont(x, x); }
mpz_class toMont(const mpz_class& x) const { mpz_class y; toMont(y, x); return y; }
mpz_class fromMont(const mpz_class& x) const { mpz_class y; fromMont(y, x); return y; }
void toMont(mpz_class& mx, const mpz_class& x) const
{
mul(mx, x, mR2);
Expand Down

0 comments on commit b6c3307

Please sign in to comment.