From ad81a388a76ab531fb22e4409cce297580c9981d Mon Sep 17 00:00:00 2001 From: J08nY Date: Sun, 30 Mar 2025 17:00:13 +0200 Subject: Avoid infinite recursion. --- pyecsca/ec/mod/flint.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'pyecsca/ec') diff --git a/pyecsca/ec/mod/flint.py b/pyecsca/ec/mod/flint.py index 3436953..69e29f4 100644 --- a/pyecsca/ec/mod/flint.py +++ b/pyecsca/ec/mod/flint.py @@ -111,8 +111,6 @@ if has_flint: if self.x == 0: return FlintMod(self._ctx(0), self._ctx, ensure=False) - if not self.is_residue(): - raise_non_residue() return square_root_inner(self, self._ctx, lambda x: FlintMod(x, self._ctx, ensure=False)) def is_cubic_residue(self) -> bool: -- cgit v1.2.3-70-g09d2