diff options
author | Pavel V. Shatov (Meister) <meisterpaul1@yandex.ru> | 2019-10-17 21:11:55 +0300 |
---|---|---|
committer | Pavel V. Shatov (Meister) <meisterpaul1@yandex.ru> | 2019-10-17 21:14:01 +0300 |
commit | 9a3c126dc09d7e128919886554ec6ce5d1fb88d7 (patch) | |
tree | 1c0d46cadc04f6e147b45b1d0122f09803a01149 /vector | |
parent | 00fd9dea38057e0f5e8d3e66722c8cb3ef9fba6b (diff) |
- Switched to default key length of 512 for faster simulation
- Added an option to dump vectors as C array initializers for easy import into
the STM32 sample driver
- Added an option to dump entire core memory to assist debugging in hardware
- Reading from bank now returns a copy of its contents, not a link
- Reworked how carry propagation works (no more in-place overwrites)
- Implemented "caching" of bank contents to match how things actually work in
hardware (eg. after switching to twice smaller modulus before doing the CRT
ladder, the upper half of the larger modulus stays in place)
- Optimized microcode
- Various cosmetic fixes
Diffstat (limited to 'vector')
-rw-r--r-- | vector/README.md | 4 | ||||
-rw-r--r-- | vector/vector_format.py | 2 | ||||
-rw-r--r-- | vector/vector_regenerate.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/vector/README.md b/vector/README.md index 3bd1853..977f207 100644 --- a/vector/README.md +++ b/vector/README.md @@ -1,5 +1,5 @@ -ModExpNG -======== +modexpng_fpga_model / vector +============================ Ranzomized test vector generation scripts for ModExpNG core model. diff --git a/vector/vector_format.py b/vector/vector_format.py index a3e7e81..7f11689 100644 --- a/vector/vector_format.py +++ b/vector/vector_format.py @@ -39,7 +39,7 @@ import vector_util SCRIPT_USAGE = "USAGE: vector_format.py [openssl_binary]" -KEY_LENGTH = 1024 +KEY_LENGTH = 512 RNG_SEED_MESSAGE = 1 RNG_SEED_BLINDING = 2 diff --git a/vector/vector_regenerate.py b/vector/vector_regenerate.py index 34c6384..b8a9373 100644 --- a/vector/vector_regenerate.py +++ b/vector/vector_regenerate.py @@ -38,7 +38,7 @@ import vector_util SCRIPT_USAGE = "USAGE: vector_regenerate.py [openssl_binary]" -KEY_LENGTH = 1024 +KEY_LENGTH = 512 if __name__ == "__main__": |