Skip to content

Commit

Permalink
Add test for multiplication by large factors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Girod committed May 25, 2020
1 parent d41470c commit 93e61e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_pairing.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ def test_ec_arithmetic(group):

assert len(str(g)) > 0

# Bug for large factors multiplication.
a = 4 * group.order()
assert (g * a).is_neutral_element()


def test_gt_multiplication():
g = GT.generator()
Expand Down

0 comments on commit 93e61e9

Please sign in to comment.