Combine the two generator scripts into one that also reads ALIGNMENT and RATE from C sources.

This commit is contained in:
Leo Vasanko
2025-11-08 13:20:15 -06:00
parent d4f8be69ed
commit 751a929836
11 changed files with 266 additions and 314 deletions
+2 -8
View File
@@ -74,16 +74,10 @@ This creates files in the `dist/` directory.
## Code Generation
The Python modules are generated from templates. If you modify the core implementation in `pyaegis/aegis256x4.py`, regenerate the other variants:
The Python modules and CFFI definitions are generated from C sources and templates. If you modify the core implementation in `pyaegis/aegis256x4.py` or update libaegis headers, regenerate all files:
```fish
python tools/gen_modules.py
```
If you update libaegis headers, regenerate the CFFI definitions:
```fish
python tools/gen_cdef.py
python tools/generate.py
```
## Troubleshooting