diff --git a/mindpq.py b/mindpq.py index 3fa0aee..b0f402b 100755 --- a/mindpq.py +++ b/mindpq.py @@ -22,7 +22,7 @@ def import_keys() -> list[RSA.RsaKey]: def factor(moduli: list[int]) -> list[tuple[int, int]]: """Factorise moduli via batch GCD, returned at the same index""" factors: list[tuple[int, int]] = [] - gs = batch_gcd(moduli) + gs = batch_gcd(*moduli) for n, p in zip(moduli, gs): if p == 1: raise RuntimeError(f"Failed to factorise modulus {n}") diff --git a/requirements.txt b/requirements.txt index c41d61b..20c548b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ pycryptodome == 3.14.1 -git+https://github.com/fionn/batch-gcd@0.0.1#egg=batch-gcd +batch-gcd == 0.0.3