aboutsummaryrefslogtreecommitdiff
path: root/pyecsca/ec/mod.py
diff options
context:
space:
mode:
authorJ08nY2024-07-11 17:53:14 +0200
committerJ08nY2024-07-11 17:53:14 +0200
commit52fb26495a47fb80d66dc84f34a2494e4356516c (patch)
treef61625704bd199a910f1c61d669d4d1280888dd9 /pyecsca/ec/mod.py
parent75e07957eabfb4129eefe8c2b4e34cf38f556b2a (diff)
downloadpyecsca-52fb26495a47fb80d66dc84f34a2494e4356516c.tar.gz
pyecsca-52fb26495a47fb80d66dc84f34a2494e4356516c.tar.zst
pyecsca-52fb26495a47fb80d66dc84f34a2494e4356516c.zip
Diffstat (limited to 'pyecsca/ec/mod.py')
-rw-r--r--pyecsca/ec/mod.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/pyecsca/ec/mod.py b/pyecsca/ec/mod.py
index 4657190..4d841ff 100644
--- a/pyecsca/ec/mod.py
+++ b/pyecsca/ec/mod.py
@@ -248,10 +248,6 @@ class Mod:
def __rfloordiv__(self, other) -> "Mod":
return ~self * other
- @_check
- def __divmod__(self, divisor):
- raise NotImplementedError
-
def __bytes__(self) -> bytes:
raise NotImplementedError
@@ -448,9 +444,6 @@ class Undefined(Mod):
def __rfloordiv__(self, other):
return NotImplemented
- def __divmod__(self, divisor):
- return NotImplemented
-
def __bytes__(self):
raise NotImplementedError
@@ -546,9 +539,6 @@ class SymbolicMod(Mod):
def __rfloordiv__(self, other) -> "SymbolicMod":
return ~self * other
- def __divmod__(self, divisor) -> "SymbolicMod":
- return NotImplemented
-
def __bytes__(self):
return int(self.x).to_bytes((self.n.bit_length() + 7) // 8, byteorder="big")