[Cryptech-Commits] [core/math/modexpng] 16/92: Fixed 4096-bit test vector generation.

git at cryptech.is git at cryptech.is
Sat Mar 14 18:18:55 UTC 2020


This is an automated email from the git hooks/post-receive script.

paul at psgd.org pushed a commit to branch master
in repository core/math/modexpng.

commit e79b4bbd96670fdfd71cf24f61c9712445ad4f0f
Author: Pavel V. Shatov (Meister) <meisterpaul1 at yandex.ru>
AuthorDate: Thu Apr 4 13:51:13 2019 +0300

    Fixed 4096-bit test vector generation.
---
 vector/vector_format.py | 4 ++++
 1 file changed, 4 insertions(+)

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:



More information about the Commits mailing list