From e79b4bbd96670fdfd71cf24f61c9712445ad4f0f Mon Sep 17 00:00:00 2001 From: "Pavel V. Shatov (Meister)" Date: Thu, 4 Apr 2019 13:51:13 +0300 Subject: Fixed 4096-bit test vector generation. --- vector/vector_format.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vector') diff --git a/vector/vector_format.py b/vector/vector_format.py index 67a50f0..a3e7e81 100644 --- a/vector/vector_format.py +++ b/vector/vector_format.py @@ -34,6 +34,7 @@ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # +import sys import vector_util SCRIPT_USAGE = "USAGE: vector_format.py [openssl_binary]" @@ -46,6 +47,9 @@ RNG_SEED_BLINDING = 2 if __name__ == "__main__": + # ModInv fails otherwise... + sys.setrecursionlimit(int(1.5 * KEY_LENGTH)) + OPENSSL_BINARY = vector_util.openssl_binary(SCRIPT_USAGE) if len(OPENSSL_BINARY) > 0: -- cgit v1.2.3