From ad342838982b0c061baa2525afa622189025b887 Mon Sep 17 00:00:00 2001 From: J08nY Date: Sun, 30 Mar 2025 17:35:34 +0200 Subject: Fix recursion, really. --- pyecsca/ec/mod/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyecsca/ec') diff --git a/pyecsca/ec/mod/base.py b/pyecsca/ec/mod/base.py index c57a1b9..6555ba1 100644 --- a/pyecsca/ec/mod/base.py +++ b/pyecsca/ec/mod/base.py @@ -141,7 +141,7 @@ def square_root_inner(x: M, intwrap, mod_class) -> M: def cube_root_inner(x: M, intwrap, mod_class) -> M: if x.n % 3 == 2: - inv3 = x.__class__(intwrap(3), x.n - 1).inverse() + inv3 = x.__class__(3, x.n - 1).inverse() return x ** int(inv3) # type: ignore q = x.n - 1 s = 0 -- cgit v1.2.3-70-g09d2