aboutsummaryrefslogtreecommitdiff
path: root/vector
diff options
context:
space:
mode:
authorPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2019-03-23 10:35:13 +0300
committerPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2019-03-23 10:35:13 +0300
commitc01d11dbd8578b98b825b6d3075b21d04a3080db (patch)
treee16e72cb557835adf15bd0a672bdefe20e3a4f03 /vector
parentca52eb02a0eb661c5e49ceda040ab8ad5673b09d (diff)
Instructions on how to use the vector generation scripts.
Diffstat (limited to 'vector')
-rw-r--r--vector/README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/vector/README.md b/vector/README.md
new file mode 100644
index 0000000..1d3602b
--- /dev/null
+++ b/vector/README.md
@@ -0,0 +1,10 @@
+ModExpNG
+========
+
+Ranzomized test vector generation scripts for ModExpNG core model.
+
+ * `vector_regenerate.py` generates a new random RSA keypair using OpenSSL. Each invocation overwrites the keypair, the old one is not retained. **Never use the generated keypair for anything outside of this model!**
+ * `vector_format.py` processes the previously generated keypair. It first generates a "random" demo message to be signed, signs the message and checks the signature using Python's built-in math. If everything goes well, it writes the formatted test vector to a file.
+ * `vector_util.py` is a helper module.
+
+To obtain a test vector, optionally edit _KEY_LENGTH_ in `vector_regenerate.py` to set desired key length, then run the script to generate randomized key file. Then optionally edit _KEY_LENGTH_ in `vector_format.py` to match key length and change _RND_SEED_ to get a different demo message and run the script to obtain randomized test vector module.