From 00fd9dea38057e0f5e8d3e66722c8cb3ef9fba6b Mon Sep 17 00:00:00 2001 From: "Pavel V. Shatov (Meister)" Date: Tue, 1 Oct 2019 14:26:55 +0300 Subject: Moved here from "modexpng" repo. --- vector/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 vector/README.md (limited to 'vector/README.md') diff --git a/vector/README.md b/vector/README.md new file mode 100644 index 0000000..3bd1853 --- /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 and a "random" blinding factor, 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_MESSAGE_ to get a different demo message and _RND_SEED_BLINDING_ to get a different blinding factor. Finally run the script to obtain randomized test vector module. -- cgit v1.2.3