[Cryptech-Commits] [user/shatov/modexpng] 06/12: Fixed 4096-bit test vector generation.
git at cryptech.is
git at cryptech.is
Mon Aug 19 11:07:08 UTC 2019
This is an automated email from the git hooks/post-receive script.
meisterpaul1 at yandex.ru pushed a commit to branch master
in repository user/shatov/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