From f39ef7cbed71f102553306358daf97994f11e3c6 Mon Sep 17 00:00:00 2001 From: Antonio Sanso Date: Tue, 23 Apr 2024 11:28:52 +0200 Subject: [PATCH] fail multi exp g2 --- main.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.py b/main.py index 156debc..a23d906 100644 --- a/main.py +++ b/main.py @@ -1306,6 +1306,16 @@ def case17_fail_multiexp_G2(): "Input": "", "ExpectedError": "invalid input length", "Name": "bls_g2multiexp_empty_input" + }, + { + "Input": int_to_hex(int(G2[0].coeffs[0]), 63) + int_to_hex(int(G2[0].coeffs[1]), 64) + int_to_hex(int(G2[1].coeffs[0]), 64) + int_to_hex(int(G2[1].coeffs[1]), 64) + int_to_hex(int(2), 32), + "ExpectedError": "invalid input length", + "Name": "bls_g2multiexp_short_input" + }, + { + "Input": int_to_hex(int(G2[0].coeffs[0]), 65) + int_to_hex(int(G2[0].coeffs[1]), 64) + int_to_hex(int(G2[1].coeffs[0]), 64) + int_to_hex(int(G2[1].coeffs[1]), 64) + int_to_hex(int(2), 32), + "ExpectedError": "invalid input length", + "Name": "bls_g2multiexp_long_input" } ]