aboutsummaryrefslogtreecommitdiff
path: root/pyecsca
diff options
context:
space:
mode:
authorJ08nY2025-03-30 17:35:34 +0200
committerJ08nY2025-03-30 17:35:34 +0200
commitad342838982b0c061baa2525afa622189025b887 (patch)
tree54740bc7f17d8c2c56b409ccbfea6117f9db1bff /pyecsca
parentad81a388a76ab531fb22e4409cce297580c9981d (diff)
downloadpyecsca-ad342838982b0c061baa2525afa622189025b887.tar.gz
pyecsca-ad342838982b0c061baa2525afa622189025b887.tar.zst
pyecsca-ad342838982b0c061baa2525afa622189025b887.zip
Diffstat (limited to 'pyecsca')
-rw-r--r--pyecsca/ec/mod/base.py2
1 files changed, 1 insertions, 1 deletions
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