aboutsummaryrefslogtreecommitdiff
path: root/vector
diff options
context:
space:
mode:
authorPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2019-04-04 13:51:13 +0300
committerPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2019-04-04 13:51:13 +0300
commite79b4bbd96670fdfd71cf24f61c9712445ad4f0f (patch)
tree87d3099b4ccdf57d22c8d685b5c6b1d832bb0611 /vector
parentaaf45e285cb15df841bfc3e84c92be9bdd90683e (diff)
Fixed 4096-bit test vector generation.
Diffstat (limited to 'vector')
-rw-r--r--vector/vector_format.py4
1 files changed, 4 insertions, 0 deletions
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: