Skip to content

Commit

Permalink
Update batch-gcd to v0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fionn committed May 2, 2022
1 parent de3f512 commit 1a89a03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mindpq.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1a89a03

Please sign in to comment.