From 93e61e9aa582951b586c12b95bf66cd5978a72c0 Mon Sep 17 00:00:00 2001 From: Laurent Girod Date: Mon, 25 May 2020 15:54:58 +0200 Subject: [PATCH] Add test for multiplication by large factors. --- tests/test_pairing.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_pairing.py b/tests/test_pairing.py index 6517658..569d1b3 100644 --- a/tests/test_pairing.py +++ b/tests/test_pairing.py @@ -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()