From b6c3307e8e9aa13aad352f6c6dc64c3801d5a898 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Mon, 2 Sep 2024 15:21:45 +0900 Subject: [PATCH] fix tests --- test/mont.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/mont.hpp b/test/mont.hpp index a1f3a778..450957af 100644 --- a/test/mont.hpp +++ b/test/mont.hpp @@ -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);